<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Page margin change substantially after DOCX export"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=136034#c10">Comment # 10</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Page margin change substantially after DOCX export"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=136034">bug 136034</a>
from <span class="vcard"><a class="email" href="mailto:jluth@mail.com" title="Justin L <jluth@mail.com>"> <span class="fn">Justin L</span></a>
</span></b>
<pre>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 <a href="https://gerrit.libreoffice.org/c/core/+/100662">https://gerrit.libreoffice.org/c/core/+/100662</a>)
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 <<a href="mailto:tamas.bunth@collabora.co.uk">tamas.bunth@collabora.co.uk</a>>
Date: Fri Dec 1 14:58:17 2017 +0100
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - FILESAVE as .doc or docx: activation of page flow on wrong place - and headers/footers and page styles change (see comment #15)"
href="show_bug.cgi?id=41650">tdf#41650</a> 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.]</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>