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

--- Comment #6 from bintoro <[email protected]> ---
I have some more information. It seems that Writer already has the capability
to represent styles on sub-lists.

If I edit an ODT file manually and assign a style to a sub-list, the document
opens up without error and is displayed as intended. What’s more, if I edit the
document in Writer and re-save it, the correct markup is preserved. I can even
edit the list and the markup still doesn’t get mangled.

This suggests that the document representation and rendering parts support
styles on sub-lists just fine and that this is purely a matter of the editor
doing the wrong thing.

So, let’s make this bug more actionable.

User scenario:

1. The user is typing a list whose list style is X.
2. Upon starting a new list item, the user increases the list level, thereby
creating a sub-list.
3. The user then applies a list style Y to the sub-list (either by directly
applying Y or by applying a paragraph style that is linked to Y).

Expected results:

Style Y is applied to the sub-list. As explained above, simply setting the
relevant attribute on the object representing the sub-list is likely already
possible.

Actual results:

A new top-level list with the style Y is created.

ODF spec:

5.3.1: “Every list, including sub-lists, may have a list style which is applied
to its list items and sub-lists. A list style specified for a sub-list
overrides the list style specified for the list in which the sub-list is
contained.”

19.880.22: “The `text:style-name` attribute specifies the name of a list style
that is applied to a list.”

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to