https://bugs.documentfoundation.org/show_bug.cgi?id=168927
Bug ID: 168927
Summary: All tables are treated as RTL when a specific *.dot
template is opened in LibreOffice
Product: LibreOffice
Version: 25.8.1.1 release
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Description:
The following public Microsoft Word template contains some tables:
https://www.mdpi.com/files/word-templates/nanomaterials-template.dot
When I open this template with Microsoft Word, it looks alright. When I open it
in LibreOffice Writer, the tables appear as Right-to-Left and are saved as RTL.
I've done some research, and it appears that the template is partially at
fault: at the end of the document, inside <w:sectPr> element, there's a
<w:bidi/> element. However, I believe that, according to the standard, this
BiDi should only apply to the last section, and certainly not to all tables
inside the document.
Can confirm that removal of <w:bidi/> from the last section's <w:sectPr> makes
all the tables LTR, as they should be.
Steps to Reproduce:
1. Download
https://www.mdpi.com/files/word-templates/nanomaterials-template.dot
2. Open it in Writer.
3. Observe the tables within the document.
Actual Results:
The tables appear as Right-to-Left. E.g., in Table 1, the leftmost column is
"Title 3" and the rightmost is "Title 1"; the cursor movement between the cells
is also inverted, but not inside the cells. In other words, LibreOffice, for
some reason, thinks this table is RTL, or should be displayed as RTL.
If I save this template as a *.docx file, LibreOffice inserts <w:bidiVisual
w:val="true"/> for each table, consequently even MS Word starts to treat the
tables as RTL. If I save this template as an *.odt file and reopen it in
LibreOffice, the tables continue to be treated as RTL too.
Expected Results:
LTR tables.
Reproducible: Always
User Profile Reset: No
Additional Info:
Version: 25.8.1.1 (X86_64) / LibreOffice Community
Build ID: 580(Build:1)
CPU threads: 16; OS: Linux 6.16; UI render: default; VCL: gtk3
Locale: en-GB (en_US.UTF-8); UI: en-US
Debian package version: 4:25.8.1-1
Calc: threaded
Tl;dr: <w:bidi/> element inside the last section's <w:sectPr> is erroneously
applied to all tables inside the document.
--
You are receiving this mail because:
You are the assignee for the bug.