Created attachment 122353 [details] Example from LO and saved in MSWord First scenario (with MSWord): ----------------------------- 1. In a empty doc insert "First Line in Lo" <Enter> 2. save as odt 3. load in MSWord insert "Second Line in MS" <Enter> 4. and save 5. load in Lo 6. copy the "First Line in Lo" 7. on a new paragraph insert the Line 8. you can see a page break and the "First Line in Lo" When you not have MSWord, you can you us the attached file then you can start with setp 5 I have investigate and found follow In LO it is: <office:automatic-styles> <style:style style:name="P1" style:family="paragraph" style:parent-style-name="Standard"> <style:text-properties officeooo:rsid="0006bdfe" officeooo:paragraph-rsid="0006bdfe"/> </style:style> </office:automatic-styles> And when MSWord save, it look like: <office:automatic-styles> <style:style style:name="P1" style:parent-style-name="Standard" style:master-page-name="MP0" style:family="paragraph"> <style:paragraph-properties fo:break-before="page"/> </style:style> </office:automatic-styles> The different is: style:master-page-name="MP0" fo:break-before="page" I have found a side http://books.evc-cit.info/odbook/ch03.html#master-styles-section is decript this and i am not sure is LO wrong or msword, but LO copy here wrong. I have found the Bug 39400 but it descript the problem in the first page without MSWord. ------------------------------------------------------------------------------- Second scenario (only LO) ------------------------- 1. In a empty doc insert "First line on page 1" <Enter> 2. insert a manuel page break (CTRL-Enter) 3. insert "First line on page 2" <Enter> 4. copy the "First line on page 2" 5. insert on the new paragraph the Line 6. you can see on the new page 3 the "First line on page 2"
Commit here https://gerrit.libreoffice.org/22270 would like to make this on 5.1 too
Created attachment 122563 [details] document to show the benefit of copying page breaks This document shows a use case where copying page breaks makes sense. There is a landscape page (second page) and you might want to copy that and paste it at the end of the document. It is not easily possible to copy from the paragraph before the page break because you'd need to copy the previous table completely.
In this case it is right, but 1. no User known, the page is connect with the first line of the page. 2. oh, but the first page and the first Line to do that not, why (only in LO without MS)?! In this case, LO is inconsistent. But a other solution can be, the "special copy" can insert the first page-break
Juergen Funk committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=b0facbbedf42a02449d9f35bb4ac8bd7ec2d8917 tdf#97526 - in copy/paste ignore unwanted page break on first paragraph It will be available in 5.2.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Now, the fix only remove the page-break from the first page, when you copy the first line from the first page of the document, and paste then this make NO page-break. But from the following pages it the same at the past, e.g. copy from the second page the first line and paste at the beginning of the paragraph then you get the page-break. When you paste NOT at the beginning from the paragraph, then it is also suppressed
Hello Juergen, Is this bug fixed? If so, could you please close it as RESOLVED FIXED? Changing status to NEW.
Fixed and tested