https://bugs.documentfoundation.org/show_bug.cgi?id=166675

            Bug ID: 166675
           Summary: FILEOPEN DOCX: no top spacing after empty paragraph
                    with w:br
           Product: LibreOffice
           Version: 24.2.4.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: bibisected, bisected, filter:docx
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
            Blocks: 107830

Created attachment 200898
  --> https://bugs.documentfoundation.org/attachment.cgi?id=200898&action=edit
forum-mso-de-58343.docx: a simple example

The problem seen is a gap between the header and the body text, while there is
no gap in Microsoft Word.

Steps to reproduce
1.) open forum-mso-de-58343.docx

On page 2, the text should start immediately after the header - with no gap
(even though "1. Einleitung" has a top margin of 24 pt).

Currently, we see a gap of 14 pt (24 top margin - prev paragraph's 10pt bottom
margin).

[Note that this kind of document is not possible in DOC format, because in that
format we always have w:splitPgBreakAndParaMark.]

This started working in LO 7.6
with commit 96a502b3756a1c100b40235f50ef2122d5b543f9
Author: Justin Luth on Tue Mar 7 07:43:14 2023 -0500
    tdf#153964 writerfilter compat15: top margin after break split

    The problem was that the top margin was being applied
    to the new paragraph after the split.

    This is absolutely atrocious in MS Word before 2013.
    If I am going to be in error, I want to error on the side
    of being compliant with compat15, since all other versions
    of MS Word are now unsupported.

But it stopped in 24.2.4 and commit ab1697cb4c17fd7a2fbf8d374ac95fc03b4d00be
Author: Michael Stahl on Fri May 3 12:12:24 2024 +0200
    tdf#160402 filter,writerfilter: import locale-dependent STYLEREF names

This is not a direct regression. IIRC, during the process of applying the new
style name, any direct-formatting is lost. (Ah yes, see bug 164908 comment 4.)

Also seen with forum-mso-de-41366.docx.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=107830
[Bug 107830] [META] DOCX (OOXML) paragraph-related issues
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to