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

            Bug ID: 172233
           Summary: Line spacing gap placed differently in LO compared to
                    Microsoft Office
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
            Blocks: 109235, 172113

Created attachment 207207
  --> https://bugs.documentfoundation.org/attachment.cgi?id=207207&action=edit
172113_linespacingGapAfter.odt

Meta-ish bug 172113 mentioned that LO places the line-spacing gap above the
line, while MS Word places it below the line. IMHO it tends to look better
Microsoft's way. This different implementation also results in layout
incompatibilities.

Steps to reproduce:
-open 172113_linespacingGapAfter.odt in LO - notice it takes up two pages
-save as DOCX and reload. In MS Word it all fits on one page.

Bug 94464 seems to suggest that there is no advantage in putting a gap above
instead of below. The way I read those comments is that font designers already
add a gap above for reasonable single-space reading. So if the user/style wants
to add an additional gap, it makes sense to add it below the line instead of
above.

bug 172113 also mentions that in LO the height of the first line is
dis-regarded in terms of line-spacing - because for the first line gap LO
re-uses the height of the last line. So in LO the last line's height informs
two gaps (although the resulting gap size can be different). [See attachment
207103 (172113_linespacingFirstLine.docx)]


In order to fix all of these differences, we might as well change the native
implementation (using a compatibility flag) to match how Microsoft does it. I
imagine that the implementation might be able to ALWAYS use the previous line's
linespacingBaseHeight as the 'gap above' (instead of only doing this for the
first line). That might allow re-using the existing code.

Alternatively, the layout could be changed to always add the gap below the
line. In my simplistic mind, these two should result in identical results.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=109235
[Bug 109235] [META] Paragraph line spacing bugs and enhancements
https://bugs.documentfoundation.org/show_bug.cgi?id=172113
[Bug 172113] Line spacing calculated differently (or buggy) in LO compared to
Microsoft Office
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to