Description: Page margin change substantially after DOCX export Steps to Reproduce: 1. open the attached file 2. Select page 2 -> Format page style -> Page tab. look at the margins (top/bottom) 3. Cancel 4. Save as DOCX 5. File reload 6. Select page 2 -> Format page style -> Page tab. look at the margins (top/bottom) Actual Results: 1,69/1,48 Expected Results: 0,85/0,74 cm Reproducible: Always User Profile Reset: No Additional Info: Found in 7.1 6.0 4.4.7.2 not in Version: 4.3.7.2 Build ID: 8a35821d8636a03b8bf4e15b48f59794652c68ba
Created attachment 164582 [details] Example file
@Luke Adding you to keep you up to speed, as I used one of you're samples. I you do export to DOCX, so you might have noticed this already..
I had only noticed it subconsciously. Luckily for my use cases the conversion is only for input into Calibre for ebook conversion, as it handles .docx far better than .odt (the Calibre developer told me, 5 or so years ago).
Created attachment 164585 [details] Bibisect log commit bde13d042da331626c09db3a2b104cdd7cb5bda1 Author: Matthew Francis <mjay.francis@gmail.com> Date: Sat Sep 5 20:43:13 2015 +0800 source-hash-196328c91ee889a0a1cbc39ce2549c7405afbef5 commit 196328c91ee889a0a1cbc39ce2549c7405afbef5 Author: Adam Co <rattles2013@gmail.com> AuthorDate: Tue Aug 20 18:27:41 2013 +0300 Commit: Caolán McNamara <caolanm@redhat.com> CommitDate: Fri Aug 30 15:56:57 2013 +0000 fix for IsPlausibleSingleWordSection checking wrong condition Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Change-Id: I503e5944079b6c03413caea27ef940efbd44ced5 Reviewed-on: https://gerrit.libreoffice.org/5548 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> https://cgit.freedesktop.org/libreoffice/core/commit/?id=196328c91ee889a0a1cbc39ce2549c7405afbef5
Reading comment 3 opportunistically as confirmation (to reduce open bug numbers for QA; and me waiting)
@Justin Sorry to bother again :P. You're on top the list for DOCX. Next NISZ. I assume Adam not being around any longer.. in search for someone else who might can take a look/peek at this, some rainy day. FWIW Regression of the page dimensions started with identified commit. Which created a mess. Improved again between 5.0 - 6.1 (and is this state also in 7.1)
Created attachment 164624 [details] Screenshot of the problem in Writer Header/footer values are indeed doubled.
Created attachment 164625 [details] Screenshot of the original and exported document side by side in Word and Writer Writer says there is no header/footer originally, but Word says there is and sees the top/bottom margins as header/footer sizes in the exported docx.
Bug 136065 rather similar; except it shows 0 cm for top/bottom after DOCX export (I don't notice much difference comparing ODT/DOCX visually in that case)
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@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.]
Dear Telesto, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug