[Libreoffice-bugs] [Bug 136034] Page margin change substantially after DOCX export

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Aug 24 09:50:16 UTC 2020


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

--- Comment #10 from Justin L <jluth at mail.com> ---
This is all dealing with emulation of page style flow, so a tricky area. I
would say it was just coincidence that it worked prior to Adam's commit.

This looks like an export bug. There are only two w:sectPr's in this document.
So page two starts with the second sectPr which defines the top/bottom margin
for the rest of the document.

But this is really tricky, because there is no page-break at the end of page 2,
and yet there needs to be a section change at that point. The only way this can
work in Word is to have a continuous break, since the different margins prevent
it from being treated as a single section. But continuous breaks cannot be read
by LO well, so we definitely should not be exporting them at this point. (see
comments on gerrit proposal https://gerrit.libreoffice.org/c/core/+/100662)

The following commit might help the situation if Adam's commit would be
reverted, so that these two pages would not be considered as a plausible single
section. But as the gerrit patch shows, Adam's patch is also under contention.
LO 6.1 commit c1d58c46eec5081576979f584151c7e9a4f67fe0
Author: Tamas Bunth <tamas.bunth at collabora.co.uk>
Date:   Fri Dec 1 14:58:17 2017 +0100
    tdf#41650 DOCX export: split para on section break

    Given two pages with entirely different style (resp. not plausible for a
    single section) and a paragraph which starts on the first page and has a
    follow on the second.

    Those page styles are represented in doc/docx structure with sections.
    Doc/Docx does not support having a paragraph in more than one sections.

    Workaround is to split the paragraph into more paragraphs and put the
    section break in between.


[In order for this document to be more compatible, it should use first/even/odd
in a single section instead of starting with a separate page style.]

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200824/d7485303/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list