When I insert Manual Break with "Default Style", I can select "Change page number" with value 0. It works and the next page is 0, but when I close the document and re-open, the page doesn't saved and is consecutive from the previous page. This problem doesn't ocurr when I select value 1 or more: the document closed and restored ok. =============== Example 1 (Problem): - Creating document aaa Page 1 Page 2 - Manual break starting page 0 Page 0 Page 1 - Save and close aaa - Open aaa Page 1 Page 2 Page 3 Page 4 =============== Example 2 (No problem): - Creating document bbb Page 1 Page 2 - Manual break starting page 1 Page 1 Page 2 - Save and close bbb - Open bbb Page 1 Page 2 Page 1 Page 2 =============== Regards.
I can confirm the bug in LO 4.3.7.2 and LO 5.0 (trunk). The bug seems to be triggered by setting page-number to 0. If saving to odt content.xml contains the following line with "auto" instead of "0". <style:paragraph-properties style:page-number="auto"/> Same works in docx so its a odt only bug.
This seems to be a regression from commit 22355042a6fc7aecf3caab69b3fa3be1430b697f or bug #72452. However, it seems 0 is somehow not allowed in ODT. Therefore, its not clear to me how to fix this properly. There a several options: a) Revert the "auto" part from the commit and allow to write 0 to ODT (need to change specs?) b) Disallow 0 in gui (what happens when importing docx with page-number 0?) c) Fix it in another way?
it's not a regression because page number 0 is a new feature (for MSO interop). as the commit from comment #3 says: Unfortunately the type of style:page-number is positiveInteger so writing 0 would be invalid; write "auto" instead for now. maybe we should do something about preventing 0 in the UI, so it can only be set when you import MSO documents.
I agree that b) is probably the best option. However, what should happen if sb loads an docx and saves it to odt? A warning that he might loose functionality because he uses odt? Would look kind of odd to me.
(In reply to Michael Stahl from comment #3) > maybe we should do something about preventing 0 in the UI, > so it can only be set when you import MSO documents. Or maybe file this with OASIS: --- OpenDocument-v1.2-cs01-schema.rng 2016-02-10 11:17:46.078922673 +0100 +++ OpenDocument-v1.2-cs01-schema.rng 2016-04-29 15:02:57.099053854 +0200 @@ -15663,7 +15663,7 @@ <optional> <attribute name="style:page-number"> <choice> - <ref name="positiveInteger"/> + <ref name="nonNegativeInteger"/> <value>auto</value> </choice> </attribute> ? It's a widening spec change, so perhaps uncontroversial?
filed OASIS proposal https://issues.oasis-open.org/browse/OFFICE-3923
Sorry, but in the new release version this bug is not solved.
** Please read this message in its entirety before responding ** 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 http://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://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
the OASIS proposal was accepted for ODF 1.3 so we just need to wait until the process is a bit further along with some committee draft or so and we have an ODF 1.3 export, then we can fix it
(In reply to Michael Stahl from comment #9) > the OASIS proposal was accepted for ODF 1.3 so we just need to wait until > the process is a bit further along with some committee draft or so and we > have an ODF 1.3 export, then we can fix it Thanks Michael for the clarification (the recent LO 6.0.6 have the same issue).
Dear Toni Ballesta, 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 http://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://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Michael Stahl committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/9019288dc1ea8c6db615b9f8bbae14efc1ed8cd8 tdf#91306 xmloff: ODF export: allow style:page-number="0" in ODF 1.3 It will be available in 7.0.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
fixed on master
Seen OK in Version: 7.0.0.0.alpha1+ (x64) Build ID: 0a7341c26741f16835c9062c309e7d3a7fca8209 CPU threads: 8; OS: Windows 10.0 Build 18362; UI render: Skia/Raster; VCL: win Locale: de-DE (en_US); UI: en-US Calc: CL