Bug 83917 - FILEOPEN: FILESAVE: A second page is created after RT
Summary: FILEOPEN: FILESAVE: A second page is created after RT
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.1.2 release
Hardware: All All
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: Writer-Header-Footer Section
  Show dependency treegraph
 
Reported: 2014-09-16 08:44 UTC by Wright Stephan
Modified: 2017-05-10 00:58 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Document with section on first line (8.85 KB, application/vnd.oasis.opendocument.text)
2014-09-16 08:44 UTC, Wright Stephan
Details
Exported docx document with section on first line (3.96 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2014-09-16 08:45 UTC, Wright Stephan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wright Stephan 2014-09-16 08:44:24 UTC
Created attachment 106359 [details]
Document with section on first line

It seems that the header of a document is not correctly exported in to the docx format if a section is entered at the first line of the document.

Steps to reproduce:

- Create a new document in LibreOffice
- Insert a section on the first line
- Create a header for the document
- Save the document as docx (Microsoft Word 2007/2010/2013 XML)
- Reopen the document in MS Word results in a missing header
- Reopen the document in LibreOffice results in a missing header and a second page
Comment 1 Wright Stephan 2014-09-16 08:45:48 UTC
Created attachment 106360 [details]
Exported docx document with section on first line
Comment 2 Jorendc 2014-09-22 09:15:48 UTC
(In reply to comment #0)
> - Reopen the document in LibreOffice results in a missing header and a
> second page

Reproducible. There is indeed no header in the docx (checked with Word for Mac 2011). I'm not sure about your 'second page' (I can't see one in your attached ODT file either).

Tested using Mac OSX 10.9 with LibreOffice Version: 4.4.0.0.alpha0+
Build ID: 5b8ea53ac7cc8843ada7a1e02edea1b522f0ef0a
TinderBox: MacOSX-10.9-x86_64@53, Branch:master, Time: 2014-09-21_10:59:37
Comment 3 Wright Stephan 2014-09-22 09:27:10 UTC
Just downloaded the 'Exported docx document with section on first line' and opened with LibreOffice (mac) again. The document shows two pages.
Comment 4 Jorendc 2014-09-22 09:52:43 UTC
(In reply to comment #3)
> Just downloaded the 'Exported docx document with section on first line' and
> opened with LibreOffice (mac) again. The document shows two pages.

Ah, my bad. reproducible. Sorry for the noise.
Comment 5 Xisco Faulí 2015-09-10 12:49:44 UTC
I have retested it with 

Version: 5.0.1.2
Build ID: 81898c9f5c0d43f3473ba111d7b351050be20261
Locale: es-ES (es_ES)

and I can no longer reproduce the missing header problem. However, the second page problem is still present. I'll change the summary acordently
Comment 6 QA Administrators 2016-09-20 10:29:07 UTC Comment hidden (obsolete)
Comment 7 Timur 2016-12-20 17:45:39 UTC
First, with 4.3. there was a missing header and a second page.
Then, with 5.0 and 5.2.3 only a second page (and typing in body was done on 2nd page).
Now, with 5.3b2 and 5.4+ header is there and no second page, but there's another issue, I don't know whether that's a problem: you can't type in the document body, just in this table, frame, what is this?

Anyway, for the sake of efficiency I'll close this as WFM. Second page must be some other bug. 
If you disagree, feel free to reopen. In that case, bibisect my reveal the change and this would be some special case, I guess.
Comment 8 Timur 2016-12-20 17:47:56 UTC
Telesto, I don't see the point in adding this to some "DOCX-BUGS" when there was "filter:docx". But please retest bugs instead. Thank you for understanding.