Issue 93908 - ODF of unordered list contain a label suffix, which is not shown nor set in the UI
Summary: ODF of unordered list contain a label suffix, which is not shown nor set in t...
Status: CLOSED FIXED
Alias: None
Product: xml
Classification: Code
Component: code (show other issues)
Version: OOo 3.0 RC1
Hardware: All All
: P2 Trivial (vote)
Target Milestone: 3.4.1
Assignee: michael.ruess
QA Contact: issues@xml
URL:
Keywords: numbering
Depends on:
Blocks:
 
Reported: 2008-09-15 12:04 UTC by svante.schubert
Modified: 2017-05-20 09:30 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description svante.schubert 2008-09-15 12:04:20 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).
Comment 1 Oliver-Rainer Wittmann 2010-09-29 10:31:37 UTC
od->mst:
Please take over this issue for OOo 3.4
Comment 2 mst.ooo 2010-12-15 16:02:18 UTC
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 :)
Comment 3 mst.ooo 2010-12-17 10:35:29 UTC
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
Comment 4 mst.ooo 2010-12-17 10:39:46 UTC
@od: is the odf_validation keyword appropriate here?
the produced file is valid by the schema, but still wrong (it violates the
intent)...
Comment 5 Oliver-Rainer Wittmann 2010-12-17 10:53:25 UTC
As the definition for keyword odf_validation talked about non-conformed
documents this keyword is not appropriate here.
Comment 6 mst.ooo 2011-02-14 14:41:51 UTC
please verify
Comment 7 michael.ruess 2011-02-17 12:29:19 UTC
Verified in CWS sw34bf03.