[Libreoffice-bugs] [Bug 136434] New: FORMATTING: redundancy in content.xml
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Sep 3 12:43:06 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=136434
Bug ID: 136434
Summary: FORMATTING: redundancy in content.xml
Product: LibreOffice
Version: Inherited From OOo
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: enhancement
Priority: medium
Component: Writer
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: christianw_lehmann at arcor.de
Description:
In Bug 136409, I had remarked on redundant markup in content.xml which blows up
ODT files. The attached file ‚redundancy_in_xml.odt’ illustrates some of the
reasons for this:
File ‘content.xml’
The section “<office:font-face-decls>” contains 9 font faces only one of which
is used in this document.
In the section ‘<office:automatic-styles>’, several text styles have the same
definition, differing only in the value of the attribute ‘officeooo:rsid’; but
this is devoid of useful effects. In this sense, the following styles are the
same:
“T1” - “T6”
“T7” - “T12”
“T13” and “T14”.
Styles T4 – T6 contain specifications of fonts which are never used.
The section ‘<text:sequence-decls>’ contains five declarations none of which is
used in the text.
The section ‘<office:text>’ contains 13 occurrences of the tag ‘<text:span
text:style-name="Kommentarzeichen">’. A style of this name is also listed among
the “Applied Styles” in the panel “Character Styles”. It is, in fact, not
applied in the document. It has apparently been taken over from the source
where this text line was copied from from.
Steps to Reproduce:
Unpack the attached odt file and examine the content.xml.
Actual Results:
The file contains markup not used in the document.
Expected Results:
The file should be clean.
Reproducible: Always
User Profile Reset: No
Additional Info:
The attached file was copied out from the larger file submitted as mentioned in
Bug 136409. That is the source of some (though not all) of the redundant markup
information. If copying such useless information cannot be avoided while the
document is being edited, then LO should offer a function (> Tools > Purge)
which streamlines the xml files of a stored odt file. Redundancy and overweight
lead to errors and crashes.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200903/f99788d3/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list