Created attachment 88414 [details]
A sub-doc that forces page-breaks when inserted in any master
Many sub-documents, without any apparent format that could force it, generate a page-break when inserted in the master-document.
Sometimes it can be corrected clearing formats in the begining of the sub-document, but it's not allways succesfull.
It's not a desired behavior, when you keep headings in the master document, and attach the sub-documents just beneath them.
Googling, I found a comment about misterious auto-styles defined in the sub-document content.xml file ("P1" till "P22" in the attached doc) ; if you manually edit them, the sub-document will insert continuous, but will miss the format of many parts (maybe image legends, some heads, etc.)
I've attached a little sub-doc made from a problematic sub-document, with the described behavior.
Confirmed under Ubuntu 10.04 running v22.214.171.124, however I believe it has always been this way. A sub-document is included in a master document using a section i.e., a typical pair of content.xml entries are:
<style:style style:name="Sect1" style:family="section">
<style:columns fo:column-count="1" fo:column-gap="0pt"/>
<text:section text:style-name="Sect1" text:name="sub-doc.odt" text:protected="true">
<text:section-source xlink:href="../sub-doc.odt" text:filter-name="writer8"/>
A section always commences on a new page. It is not a styles issue but rather a predefined rendering of some sort built into LO. Removing the leading page break will simply see it re-inserted next time Writer opens the master document.
I have had a look at ODF v1.2 and cannot find anything that would suggest this page break is essential, however it would be good if someone else could confirm this.
Setting platform to All and severity to enhancement.
Well, I can't say how it should act, but I'm sure I've been inserting sub-documents in the same page than master document text (and suffering erratic results).
I would search for examples if you consider it useful.
Updated version: behavior persists in LO 126.96.36.199
NOTE: detected a hidden paràgraph in the sub-document; nevertheless, deleting it dosen't change the behavior.
Confirmed in LO 188.8.131.52 running on Ubuntu 14.04.
My test case: create two text-only documents and include them into a master-documents. The test case of 'LOpage-breakBUG.zip' produces the same unexpected behavior.
This problem renders master-documents almost useless for people that do not want to have page breaks between the sub-documents.
Thanks for considering this case!
Just had the chance to test things on LO 184.108.40.206 and the situation does get confusing.
1. Creating a master document and inserting new documents from therein does work as expected, i.e. without automatic page breaks.
2. 'LOpage-breakBUG.zip', however, does NOT work as expected, i.e. page breaks are inserted.
** 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 on a currently supported version of LibreOffice
(5.1.6 or 5.2.3 https://www.libreoffice.org/download/
If the bug is present, please leave a comment that includes the version of LibreOffice and
your operating system, and any changes you see in the bug behavior
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave
a short comment that includes your version of LibreOffice and Operating System
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)
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: http://webchat.freenode.net/?channels=libreoffice-qa
Thank you for helping us make LibreOffice even better for everyone!
I tested this bug with LibO 220.127.116.11.
The files in the attachment from 2013-10-31 behave as described from the bug reporter: a page break is automatically inserted before the sub-document is shown.
But I created a new file and there is no page break. Therefore I would suggest to close this bug as RESOLVED WORKSFORME.
Can someone else conform this?
Created attachment 131837 [details]
ZIP archive with master document and sub-document
Created with LibO version: 18.104.22.168
Build ID: 1:5.3.0~rc3-0ubuntu1~trusty1.1
CPU Threads: 2; OS Version: Linux 3.13; UI Render: default; VCL: gtk2; Layout Engine: new; Locale: de-AT (de_DE.UTF-8); Calc: group
I do not have access to a newer version than LO 5.1.6. The sample document that you have uploaded does also work well without inserting page breaks. However, with some fiddling around on my own, I could create master documents with unwanted page breaks automatically inserted between sub-documents. Unfortunately, LO eventually crashed on them every time before I could take a closer look.
Anyways, this does IMHO not support the predicate RESOLVED WORKSFORME, because your sample does work for me as well whereas the problem is not resolved here. May I ask you to recreate my own test by using several bigger sub-documents used multiple times and occasionally interspersed with some text blocks? Sorry to be of no big help but I will not have access to LO 5.3+ any time soon.
sm8ps, my reasons asking for a RESOLVED WORKSFORME are 1) that new documents have no page-break (at least on my installations). If it's not reproducible with current versions, then it's not a bug anymore. And 2) if it's only reproducible with your installation, than maybe a new user profile could help. Did you test all steps to ensure that's no problem with your installation? And 3) if the bug is only reproducible with the old attachment of 2013 (and not with new files), then for me it needs not necessarily to be a bug because maybe the page-break is inserted hard-coded in the xml files and can't disappear also with current LibO versions.
I'm working with master and sub documents for 10 years and I haven't seen that bug in my documents (master documents including over a dozen sub documents with about 200 pages in total). I can't confirm the bug, maybe another one can.
sm8ps, maybe it helps if you give us a step-by-step description how you create the master and sub documents and how you do link these files in the master document. Please do this with a fresh user profile and with new templates/files (not old one because old files could be the reason for that behavior).
Additional information: Only linked MSO Word files enforces a page-break in my tests, no OpenDocument files.
(In reply to Thomas Lendo from comment #11)
> sm8ps, my reasons asking for a RESOLVED WORKSFORME are 1) that new documents
> have no page-break (at least on my installations). If it's not reproducible
> with current versions, then it's not a bug anymore. And 2) if it's only
> reproducible with your installation, than maybe a new user profile could
> help. Did you test all steps to ensure that's no problem with your
> installation? And 3) if the bug is only reproducible with the old attachment
> of 2013 (and not with new files), then for me it needs not necessarily to be
> a bug because maybe the page-break is inserted hard-coded in the xml files
> and can't disappear also with current LibO versions.
> I'm working with master and sub documents for 10 years and I haven't seen
> that bug in my documents (master documents including over a dozen sub
> documents with about 200 pages in total). I can't confirm the bug, maybe
> another one can.
> sm8ps, maybe it helps if you give us a step-by-step description how you
> create the master and sub documents and how you do link these files in the
> master document. Please do this with a fresh user profile and with new
> templates/files (not old one because old files could be the reason for that
I did some more thorough testing but could not reproduce my previous results; I must have done something inadvertent last time. So please go ahead changing the status of this bug report. Thanks for taking the time to consider this all!
Well I'm not familiar with bug classifying protocol, and only want to drop more info: in current version 5.3 (cannot access the subversion now) the problems continues, in an erratic way but for sure related with text formats: having a sub-doc that inserts a page-break when inserted in a master document, it continues acting this way even if I copy-paste the content of the document in a document that originally didn't force a page-break when inserted.
Repeating the process but inserting the problematic content in the clean sub-document as HTML purges the bad behaviour at the cost of missing the specific LO styles.
That's the way we solve it from the beginning. Apologies for not to share...
Set this bug back to UNCONFIRMED so that a QA guy can have a look ...
I said my two cents in comment 8 and comment 11.
(In reply to gui from comment #14)
> Well I'm not familiar with bug classifying protocol, and only want to drop
> more info: in current version 5.3 (cannot access the subversion now) the
> problems continues, in an erratic way but for sure related with text
> formats: having a sub-doc that inserts a page-break when inserted in a
> master document, it continues acting this way even if I copy-paste the
> content of the document in a document that originally didn't force a
> page-break when inserted.
> Repeating the process but inserting the problematic content in the clean
> sub-document as HTML purges the bad behaviour at the cost of missing the
> specific LO styles.
> That's the way we solve it from the beginning. Apologies for not to share...
Are you talking about documents created from scratch in version 5.3?
The sub-document has a paragraph with style "Invisible" at the beginning. Uncheck the property "Hidden" in the tab "Font Effects" in the style. Now the paragraph is visible. Open its properties (of the paragraph, not of the style). Go to tab "Text flow". There you can see, that "page break before" is set. Therefore the page break in the master document is correct. Remove this page break in the sub-document and there will be no page break in the master document.
Wait! Wait! For sure you are right, but let me search for more damned files; I'm sure I'm having the same behavior without having that hidden paragraph... And apologies for the lapsus with hidden text...