Issue 73229 - Inserting a document with a section and a pagebreak at the first paragraph produces an unnecessary empty first page.
Summary: Inserting a document with a section and a pagebreak at the first paragraph pr...
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: OOo 2.0.4
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-08 08:18 UTC by clutz
Modified: 2013-08-07 14:38 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Positive example: insert that document into a new document with Insert->File... (7.36 KB, application/vnd.sun.xml.writer)
2007-01-08 08:20 UTC, clutz
no flags Details
negative example: Insert->File... with that file produces an unwanted pagebreak (7.44 KB, application/vnd.sun.xml.writer)
2007-01-08 08:22 UTC, clutz
no flags Details
Another test document without a page break that does not produce the expected behaviour when you insert it into an empty document. (48.98 KB, application/vnd.oasis.opendocument.text)
2008-01-29 15:53 UTC, mux2005
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description clutz 2007-01-08 08:18:19 UTC
Attached, there are two files that are nearly similar, but behave different when
they are inserted into an empty document via "Insert->File...". Here is how to
reproduce:

1) create a new empty writer document
2) Insert->File... and select the attached file pagebreak_noSection.odt

The content of pagebreak_noSection.odt is shown at the FIRST page of the result
document. Thats correct!

The file pagebreak_noSection is very simple: there are only two paragraphs with
the content "a" and "b". The first paragraph is formatted with the set
formatting option Format->Paragraph/TextFlow/Breaks/Insert (Type Page).

When inserting that document into the new empty document, the insert method
correctly recognizes that there is no content at the first page of the empty
document (so the document already starts with a new page) and DOES NOT produce a
pagebreak.

NOW:

1) create a new empty writer document
2) Insert->File... and select the attached file pagebreak_WITHSection.odt

The content of pagebreak_WITHSection.odt is shown at the SECOND page of the
result document. Thats NOT correct! The correct behaviour would be to show the
content at the first page.

The file pagebreak_WITHSection differs from the first document only in one small
point: there is a section around the first paragraph "a".

When inserting that document into the new empty document, the insert method
wrongly creates a new paragraph before the section. Hence the document is no
longer empty and an unwanted pagebreak is produced. I think everything would be
OK, if the empty paragraph before the inserted section would not be produced in
this case.
Comment 1 clutz 2007-01-08 08:20:57 UTC
Created attachment 41981 [details]
Positive example: insert that document into a new document with Insert->File...
Comment 2 clutz 2007-01-08 08:22:05 UTC
Created attachment 41982 [details]
negative example: Insert->File... with that file produces an unwanted pagebreak
Comment 3 clutz 2007-01-08 08:23:51 UTC
added cc's
Comment 4 michael.ruess 2007-01-08 10:24:24 UTC
MRU->OS: in case of the attached pagebreak_WITHSection.odt, when inserting this
into an empty document, an empty paragraph at the top will be created. This
leads to the fact that the real content is moved to second page due to the page
break at the first paragraph of the pagebreak_WITHSection.odt.
Comment 5 Oliver Specht 2007-01-10 07:03:19 UTC
->ama: something for you?
Comment 6 mux2005 2008-01-29 15:53:50 UTC
Created attachment 51229 [details]
Another test document without a page break that does not produce the expected behaviour when you insert it into an empty document.