Bug 166571 - FILEOPEN DOC/X: need to honour "Suppress Space Before After Hard Page Or Column Break"
Summary: FILEOPEN DOC/X: need to honour "Suppress Space Before After Hard Page Or Colu...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:doc, filter:docx
Depends on:
Blocks: DOCX-Paragraph DOC-Paragraph
  Show dependency treegraph
 
Reported: 2025-05-13 21:40 UTC by Justin L
Modified: 2025-05-13 21:40 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
forum-mso-de-9007.docx: minimimized and emphasized and DOCX'd (22.28 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-05-13 21:40 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin L 2025-05-13 21:40:09 UTC
Created attachment 200788 [details]
forum-mso-de-9007.docx: minimimized and emphasized and DOCX'd

Normally, after a regular page break (at least when the page break is the first "thing" in the paragraph), the top margin is applied after the page break.

However, there is a layout flag in MS Word (Options - Advanced - Layout Options) to avoid applying any top margin at all around a page or column break. Although LO somewhat recognizes this suppressSpBfAfterPgBrk flag in both DOC and DOCX, it is not used or round-tripped. [do CASE-INSENSITIVE searches for that string in the code base]

Steps to reproduce:
1.) Open forum-mso-de-9007.docx

There should be no real gap between the header and the body text on any of the pages except for page 5 ("1	Text 1") which shows that top margins still do apply after a section page break...

Found when investigating why so many examples looked worse after my attempted fix for related bug 166503. Marking as low/minor priority.