Apache OpenOffice (AOO) Bugzilla – Issue 93908
ODF of unordered list contain a label suffix, which is not shown nor set in the UI
Last modified: 2017-05-20 09:30:35 UTC
The ODF of a unordered list (e.g. bullet) got always a number suffix in the ODF XML format (ie. style:num-suffix="."), but is not shown in the OOo 3.0RC UI (tested on MacOS & Windows). The problem is that all other ODF applications will show this suffix and in the future a suffix set by purpose can not be distinguished from these broken documents, which always have a suffix. Reproduction: It can be quickly seen by exporting the ODF file to XHTML or for instance by taking a look into the content.xml. <text:list-style style:name="L1"> <text:list-level-style-bullet text:level="1" text:style-name="Bullet_20_Symbols" style:num-suffix="." text:bullet-char="•"> <style:list-level-properties text:list-level-position-and-space-mode="label-alignment"> <style:list-level-label-alignment text:label-followed-by="listtab" text:list-tab-stop-position="1.27cm" fo:text-indent="-0.635cm" fo:margin-left="1.27cm"/> </style:list-level-properties> </text:list-level-style-bullet> To view the content.xml an easy way is to install JEdit with the Archive and XML Indent plug-in. Select the ODF doc in the open file dialog and choose Archive Plugin from plugin to browse the content of the package. Use XML-INDENT to make the content.xml break from one line to nice indendation (best configure a key short-cut for this plug-in).
od->mst: Please take over this issue for OOo 3.4
it looks like the fix for this consists of 2 parts: 1. the ODF import should ignore style:num-suffix on numbering styles of type bullet if the file was written by a buggy OOo version. 2. numbering styles of type bullet that are created in OOo should not have prefix/suffix. (since apparently the UI does not allow editing it) then we have another problem: the ODF 1.2 cd05 part 1 says in 19.505 style:num-suffix: "The style:num-suffix attribute can also specify a character after the value of a text:bullet-char attribute." so a prefix/suffix on a bullet numbering style is explicitly allowed. OOo should be able to display a prefix/suffix in this case. @od: do you agree that that is a separate issue, not necessarily to be fixed for OOo 3.4? if you don't have an issue for it, someone should file one :)
the following places could create a bullet list with suffix: - the writer autoformat (type "* foo ENTER") - the Bullets On/Off button in the toolbar - the Bullets tab of the Numbering/Bullets dialog - the Outline tab of the Numbering/Bullets dialog surprisingly the Options tab of the Numbering/Bullets dialog seems to do it right fixed in CWS sw34bf03 http://hg.services.openoffice.org/hg/cws/sw34bf03/rev/e1acd21d8e6b
@od: is the odf_validation keyword appropriate here? the produced file is valid by the schema, but still wrong (it violates the intent)...
As the definition for keyword odf_validation talked about non-conformed documents this keyword is not appropriate here.
please verify
Verified in CWS sw34bf03.