When generating a document with RTL (Right-to-Left) content, the text direction switches correctly to RTL in the document, but the text remains left-aligned instead of right-aligned.
Steps to Reproduce:
1-Create a paragraph with RTL text using the library.
2-Generate the document.
3-Open the document in Word or compatible editor.
Expected Behavior:
Text with RTL direction should be right-aligned by default.
Actual Behavior:
Text remains left-aligned, despite the RTL direction being set.
Environment:
Node.js
OS: Windows + MS office 2007
Additional Info:
The document’s RTL flag is correctly applied, but alignment does not follow.
When generating a document with RTL (Right-to-Left) content, the text direction switches correctly to RTL in the document, but the text remains left-aligned instead of right-aligned.
Steps to Reproduce:
1-Create a paragraph with RTL text using the library.
2-Generate the document.
3-Open the document in Word or compatible editor.
Expected Behavior:
Text with RTL direction should be right-aligned by default.
Actual Behavior:
Text remains left-aligned, despite the RTL direction being set.
Environment:
Node.js
OS: Windows + MS office 2007
Additional Info:
The document’s RTL flag is correctly applied, but alignment does not follow.