https://bugs.documentfoundation.org/show_bug.cgi?id=104819

            Bug ID: 104819
           Summary: Formatting: Corrupt Document/Format After Save When
                    Starting With Empty .docx Document
           Product: LibreOffice
           Version: 5.2.3.3 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

I have been seeing some "strange" behaviour with the text in headers and
footers for a few versions. In trying to produce a repeatable example I created
the "corruption" below. This example was created using 5.2.3.3 on Windows 10.

The behaviour I was trying to create, which I have seen in both 5.0 and 5.1 was
the tab positions in the headers and footers not being saved correctly.

In the example below the "strange" behaviour is more general for the headers
and footers and main body text with a new .docx document edited in LibreOffice
Writer.

The steps followed:
Create a new Microsoft Word Doc in a folder (using the right mouse button
option) on Windows 10 with Microsoft Word from Microsoft Office Professional
Plus 2013 (15.0.4875.1001)
Open the document with LibreOffice Writer
Insert -> Header and Footer -> Header -> Default Style
Insert -> Header and Footer -> Footer -> Default Style

In both the header and footer place text:
left justified 0 tab - “Left”
centre justified tab 8.5 - “Middle”
right justified tab 17 - “Right”

Add some text in the main body (ie not the header and footer).
Addng the "->" characters seems to be especially troublesome.

Save document (just a save operation), so re-saves as in original as "Microsoft
Word (.docx)" format
Save as document as "Microsoft Word 97-2003 (.doc)" (save as operation)
Save as document "ODF Text Document (.odt)" (save as operation)

Close the existing file and re-open the three saved files in LibreOffice
Writer.
The .docx will have no header or footer text and will have other "strange" text
formatting corruption. Note that if I try to open this document using Microsoft
Word I get the message "We're sorry. We can't open header_footer_tab_bug
because we found a problem with its contents."
Details: "The file is corrupt and cannot be opened".

The .doc and .odt files look as expected in LibreOffice Writer.

I also tried from the open .odt file in LibreOffice Writer a save as "Microsoft
Word 2007-2013 XML (.docx)". This document opened "fine" and had the expected
content in both LibreOffice Writer and Microsoft Word.

Attached files:
1) New Microsoft Word Document.docx - Original blank docx file created in
folder in Windows 10.
2) header_footer_tab_bug.docx - "Corrupted" .docx file
3) header_footer_tab_bug.doc - "Fine" .doc file
4) header_footer_tab_bug.odt - "Fine" .odt file
5) header_footer_tab_bug_saved_from_odt_document.docx - "Fine" .docx file saved
from re-opened .odt file

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to