Bug 141062 - Generated DOCX tables with column and row spanning formatted wrong
Summary: Generated DOCX tables with column and row spanning formatted wrong
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.0.0.alpha0+
Hardware: All All
: low normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:docx
Depends on:
Blocks: DOCX-Tables MSO-External-Producers
  Show dependency treegraph
 
Reported: 2021-03-16 11:30 UTC by Paul Johnson
Modified: 2024-09-09 19:06 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample docx file (815.91 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-03-16 11:30 UTC, Paul Johnson
Details
Shorter example docx file (37.38 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-03-16 17:37 UTC, Paul Johnson
Details
PDF exported from office.com (61.14 KB, application/pdf)
2024-09-09 19:06 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Johnson 2021-03-16 11:30:56 UTC
Created attachment 170508 [details]
Sample docx file

The attached file is generated by our software, the Diametric Safety Case Manager. It displays correctly when opened in MS Word, but the table formatting is broken in LO.

Our tables contain row and column spanning. LO shows them with misaligned columns and cell text.

We *think* that the generated document.xml is valid OOXML, but we are certainly open to the idea that the problem is in our document generator.
Comment 1 Timur 2021-03-16 14:30:48 UTC
Repro 7.2+ in Windows, so All. 
Never was fully correct but was changed in 7.0.
As in other generated docx cases, Lo opens fine if resaved in Mso. 
I'll set to New, regardless if docx is really correct. 

You can do 2 things 
- attach minimal sample with just one tavle, instead of 12 pages docx
- xml compare your docx and Mso resaved one
Comment 2 Timur 2021-03-16 14:55:48 UTC
I bisected change to worse in 7.0 to bug 59274. Laszlo, please see this.
Comment 3 Paul Johnson 2021-03-16 17:37:26 UTC
Created attachment 170518 [details]
Shorter example docx file

As requested, here is a shorter file containing only one table.

I've spent quite a lot of time looking at XML diffs. The trouble is that Word makes so many irrelevant changes its not possible to figure out what the important ones are. I can't see any change in the underlying table structure.
Comment 4 Buovjaga 2024-09-09 19:06:48 UTC
Created attachment 196341 [details]
PDF exported from office.com

For some reason it only exported page 1, but it's enough to see the issue when comparing to LibreOffice.

Still confirmed.

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 3231db0341baffd2547c50d36ef7c00aaa11601d
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 9 September 2024