[Libreoffice-bugs] [Bug 144013] FILESAVE DOCX: "Same content on first page" is checked after saving as docx, when document contains a table on the page which spreads across two pages

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Oct 8 13:10:23 UTC 2021


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

Justin L <jluth at mail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|regression                  |

--- Comment #4 from Justin L <jluth at mail.com> ---
Page styles are always complicated because MS has a completely different
paradigm than LO, so everything is based on emulation. Any monkeying around
here likely has some bad side effects.


In this case, LO ODT has a First-Page style that defines the same header for
all pages. However, by definition it can only apply to the first page because
it rolls over to another style - a concept that MS does not have at all. (So
one way OP can work around this is to NOT use the First Page style, but just
use the Default style with a different first header.)

A complication here is that the First Page has different margins from the next
pages, so IsPlausableSingleWordSection is false. So we can't combine these two
styles into a single one. (If they were identical, then it would have worked,
so that is another way OP could get the desired results.)

[In DOC format, they fudge adding in a section page break in this case, but
that also adds all kinds of issues (like breaking a single paragraph into two),
so it is not a good idea to try to port that hack to DOCX. See for instance the
(poorly titled) bug 132149.]

There were a lot of page style changes happening in 4.0 and 4.1 it seems like,
so what may seem "correct" for this particular document is likely just a
coincidence. For example, the margins on page 2 were not correct - they more
closely match the settings from the first page.

So, I'm removing the REGRESSION flag.

-- 
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/20211008/a41dbb93/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list