Summary: | RTF/DOCX auto paragraph spacing gets zero top margin at top of pages | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | László Németh <nemeth> |
Component: | Writer | Assignee: | László Németh <nemeth> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | jluth, kelemeng, libreoffice, nemeth, vmiklos, xiscofauli |
Priority: | medium | ||
Version: | 6.2.0.0.alpha0+ | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.documentfoundation.org/show_bug.cgi?id=134257 | ||
Whiteboard: | target:6.2.0 | ||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | 82006, 107480 | ||
Bug Blocks: | 107830 |
Description
László Németh
2018-07-04 09:32:50 UTC
László Németh committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=0307a62790b33ee0c02c2323a8f759e53e2035a4 tdf#118533 RTF/DOCX import: fix beforeAutospacing for first paragraph It will be available in 6.2.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. László Németh committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=970eaaf1bdade63fd651db591c683e36e662f8f5 tdf#118533 fix shape import: zero top margin only in first paragraph It will be available in 6.2.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. We cannot solve this only during import, because it depends from the actual page break, too. Miklos, You've spend a lot of time on in this area. Any suggestions? Do we need a compatibility mode? Looks like the correct fix here will be to finally extend the sw doc model for these auto margins and support it in core (so the layout can react to this), instead of the large amount of hacks during both import and export. Compatibility flag is not necessarily needed if this will be a new feature in core. It's possible to just implement it to behave the same way as it does in Word. I added setting the very first paragraph in the document to be auto-spaced as zero in the proposed re-write of the autospacing code at https://gerrit.libreoffice.org/59705. This doesn't solve the problem of the top of each page having a auto-spaced zero margin though, so this bug report still remains open - just that the most noticeable case can be resolved easily. (In reply to Justin L from comment #6) > I added setting the very first paragraph in the document to be auto-spaced > as zero in the proposed re-write of the autospacing code at > https://gerrit.libreoffice.org/59705. > > This doesn't solve the problem of the top of each page having a auto-spaced > zero margin though, so this bug report still remains open - just that the > most noticeable case can be resolved easily. @Justin: thanks for the fix! László |