Open
Description
Issue Summary
When creating Word tables using python-docx
, setting paragraphs or runs to right-to-left (RTL) alignment works inside the cells. However, the table itself remains left-to-right (LTR) in layout.
This means the column order is reversed, and the first column (e.g., row number) appears on the left instead of the right. This is problematic for documents in RTL languages like Persian, Arabic, or Hebrew.
Steps to Reproduce
- Create a table with
doc.add_table(rows=1, cols=3)
- Set paragraph alignment and bidi/textDirection to RTL
- Save the document
- Open the
.docx
in Word — the table layout remains LTR.
Expected Behavior
The table should support RTL
direction fully, where:
- Columns flow from right to left.
Metadata
Metadata
Assignees
Labels
No labels