https://bugs.freedesktop.org/show_bug.cgi?id=85769
Bug ID: 85769
Summary: Writer saves malformed comments.xml, breaking comments
in .docx output
Product: LibreOffice
Version: 4.2.4.2 release
Hardware: Other
OS: Windows (All)
Status: UNCONFIRMED
Severity: major
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
When using LibreOffice to edit a .docx document and add comments, occasionally
some (but not all) of the comment text will just disappear when the document is
closed and re-opened. The comments themselves don't disappear, they just become
empty boxes with no text.
I unzipped a .docx that was having this problem and found the following:
```
$ xmllint word/comments.xml
word/comments.xml:2: parser error : Attribute w:ascii redefined
i="" w:hAnsi="" w:eastAsia="SimSun" w:cs="Times New Roman" w:ascii=""
w:hAnsi=""
^
word/comments.xml:2: parser error : Attribute w:hAnsi redefined
i="" w:hAnsi="" w:eastAsia="SimSun" w:cs="Times New Roman" w:ascii=""
w:hAnsi=""
^
```
Opening up comments.xml, indeed there were two <w:comment> blocks that had the
w:hAnsi and w:ascii attributes defined twice, first to the intended value, and
then to an empty string.
I removed the latter by hand, re-zipped the file, and now the comments appear,
but I have no idea what caused the problem in the first place.
Unfortunately the document in question was a student's paper from a college
course, so I can't provide it as an example.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs