| Summary: | FILESAVE: When exporting DOCX with 'different first header' - it is broken to 2 sections | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Adam CloudOn <rattles2013> |
| Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | CC: | jorendc |
| Priority: | medium | ||
| Version: | 4.2.0.0.alpha0+ Master | ||
| Hardware: | Other | ||
| OS: | All | ||
| Whiteboard: | BSA | ||
| Crash report or crash signature: | Regression By: | ||
| Attachments: |
DOCX containing a 'different first page' with a single section
DOCX exported by LO with 3 sections instead of 1 section, and 3 pages instead of 2 pages Screenshot comparison between original DOCX and exported DOCX |
||
In addition - the paragraph on the 2nd page is split to 2 paragraphs on pages 2 and 3 (with a section for the new page also). So to sum it up - instead of having 2 pages with a SINGLE section, we have 3 pages with 3 sections (1 per page). Created attachment 87178 [details]
DOCX exported by LO with 3 sections instead of 1 section, and 3 pages instead of 2 pages
Created attachment 87179 [details]
Screenshot comparison between original DOCX and exported DOCX
Different behavior using Windows 8.1 with LibreOffice Version: 4.3.0.0.alpha1+ Build ID: f4a6837025a293312cbc43b9c527851362f11030 TinderBox: Win-x86@47-TDF, Branch:MASTER, Time: 2014-04-26_09:21:18 Behavior now: save .docx as .docx again and open it using LibreOffice -> all text on 1 page, and only 1 page displayed. Opening the .docx using Word 2013 -> correct (as original). Kind regards, Joren (In reply to comment #4) > Behavior now: save .docx as .docx again and open it using LibreOffice -> all > text on 1 page, and only 1 page displayed. > Opening the .docx using Word 2013 -> correct (as original). Hi Joren, Even though it 'seems' to be round-tripped correctly, the original document has 1 section while the round-tripped document has 2 sections. If you open the DOCX in MS Word, and double-click on the header, In the original DOCX you will see 'First Page Header' on the 1st page and 'Header' on the 2nd page. In the round-tripped DOCX you will see 'First Page Header Section 1', on the 1st page and 'First Page Header Section 2' on the 2nd page. So it is still wrong ... Could not reproduce. Windows Vista 64 Version: 4.4.3.2 Build ID: 88805f81e9fe61362df02b9941de8e38a9b5fd16 4.3.6.2 Changed to RESOLVED WORKSFORME. |
Created attachment 87177 [details] DOCX containing a 'different first page' with a single section Problem description: If LO imports a DOCX that has a 'different first header' style, and then exports that DOCX - the result is now a file that contains 2 sections - one for the 'first page' and one for the rest. This is wrong because LO should keep it only 1 section, as it is in the original DOCX. Steps to reproduce: 1. Load attached DOCX in LO 2. Save as NEW.DOCX 3. Load NEW.DOCX in Word 4. Exported file now has 2 sections (see screenshot) Current behavior: LO exports the single section as 2 sections. Expected behavior: LO should export the single section back as a single section. Operating System: All Version: 4.2.0.0.alpha0+ Master