Skip to content

[Bug] RTL text alignment not applied correctly in generated documents #3419

@zinouwasim84-rgb

Description

@zinouwasim84-rgb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions