Bug 142463 - Fileopen DOCX: Different text and table flow (table on 1 page in MSO, splits in LO) probably due to footnote separator line spacing
Summary: Fileopen DOCX: Different text and table flow (table on 1 page in MSO, splits ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx, preBibisect, regression
Depends on:
Blocks: MSO-External-Producers
  Show dependency treegraph
 
Reported: 2021-05-24 12:50 UTC by 10686639125
Modified: 2023-06-14 18:43 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
generated by pandoc (21.74 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-05-24 12:50 UTC, 10686639125
Details
default-word.pdf (138.90 KB, application/pdf)
2021-05-24 12:51 UTC, 10686639125
Details
default-writer.pdf (81.36 KB, application/pdf)
2021-05-24 12:51 UTC, 10686639125
Details
DOCX compared in MSO and LO (145.13 KB, image/png)
2021-05-25 13:50 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 10686639125 2021-05-24 12:50:05 UTC
Description:
Show different between Microsoft Office 2016 and LibreOffice 7.2.0

Steps to Reproduce:
The default.docx is generated by pandoc.

Actual Results:
The Table caption in second page by Word2016, where begin in first page by LO.

Expected Results:
See details by docx and pdf.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
none
Comment 1 10686639125 2021-05-24 12:50:47 UTC
Created attachment 172291 [details]
generated by pandoc
Comment 2 10686639125 2021-05-24 12:51:23 UTC
Created attachment 172292 [details]
default-word.pdf
Comment 3 10686639125 2021-05-24 12:51:47 UTC
Created attachment 172293 [details]
default-writer.pdf
Comment 4 Timur 2021-05-25 12:19:57 UTC
Reproduced 7.2+ and back to LO 3.5. Not with 3.4 for DOCX so could be a regression.
Except I'm not sure what happens here (not a matter of fonts).
If DOCX saved as DOC in MSO, repro also 7.2+ and OO 3.3.
Comment 5 Justin L 2021-05-25 12:51:51 UTC
Looks like an "every TWIP is important" kind of bug.

I'm guessing it is somehow related to line spacing being EXACTLY 28pt - which is a rather odd setting. It is probably affecting the un-editable footnote separator and causing it to take up a bit more space than normal.

LO handles the footnote separator in a completely different way from Word, so no matter what the ultimate cause, it shouldn't be surprising that there is a sizing difference in the amount of space available on the page. LO isn't wasting as much space, so one row of the table still fit on the first page.
Comment 6 Timur 2021-05-25 13:50:59 UTC
Created attachment 172330 [details]
DOCX compared in MSO and LO

Not sure it's about 28 pt. Same with 20. 
LO has "Allow table to split across pages and columns". It turned off, table goes to page 2. 
Can't see what's MSO equivalent.
Comment 7 Justin L 2021-05-25 14:11:13 UTC
MS(In reply to Timur from comment #6)
> Can't see what's MSO equivalent.
There is no direct MSO equivalent. The way they do it is to mark every first-column cell's 1st paragraph as "keep with next paragraph" IIRC.

> Not sure it's about 28 pt. Same with 20.
This is specified on the Normal paragraph style, so it probably affects the separator line itself, and not only the footnote. I didn't figure out how to edit the separator line(s). (Perhaps it is only possible by editing the footnotes.xml file itself.)
Comment 8 Aron Budea 2021-08-11 03:22:02 UTC
(In reply to Timur from comment #4)
> Reproduced 7.2+ and back to LO 3.5. Not with 3.4 for DOCX so could be a
> regression.
To be sure, I checked with oldest of bibisect-43all (which predates 3.5 a bit), and indeed the bug is there already, setting preBibisect.