Bug 135336 - LIST STYLES: formatting is not being consistently applied to paragraphs
Summary: LIST STYLES: formatting is not being consistently applied to paragraphs
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks:
 
Reported: 2020-07-31 09:47 UTC by R. Green
Modified: 2020-08-07 10:49 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Writer file showing an issue with List style formatting (20.82 KB, application/vnd.oasis.opendocument.text)
2020-07-31 09:47 UTC, R. Green
Details

Note You need to log in before you can comment on or make changes to this bug.
Description R. Green 2020-07-31 09:47:28 UTC
Created attachment 163800 [details]
Writer file showing an issue with List style formatting

Version: 6.4.4.2 (x64)
Build ID: 3d775be2011f3886db32dfd395a6a6d1ca2630ff
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: default; VCL: win; 
Locale: en-GB (en_GB); UI-Language: en-GB
Calc: threaded

There seems to be a problem with the way that List styles interact with Paragraph styles. It was previously touched on in Bug 94562, but this is the latest info.

Open the attached writer file. Observe the two lists—"CONTENTS 1" and "CONTENTS 2". These both have EXACTLY the same properties and yet the front indentation is different in both cases.

CONTENTS 1 is created by double-clicking the List style "Numbering 123" to the paragraphs. You can see that the Numbering style indents ("Numbering style > Position > Position and Spacing") apply and the corresponding paragraph style properties are disabled.

However, in CONTENTS 2, the opposite situation applies. The paragraph style indents are enabled and these are overruling the Numbering style indents.

COMMENT: What is the correct behaviour? To my understanding, List style formatting should always prevail over paragraph styles. But does there also need to be a way for the user to apply an "After text" indent?
Comment 1 R. Green 2020-07-31 09:54:10 UTC
Forgot to mention that in "CONTENTS 2" the list style is applied differently—by linking it to the paragraph style via the "Outline and numbering" tab.
Comment 2 Dieter 2020-08-06 16:21:15 UTC
(In reply to R. Green from comment #0)
> COMMENT: What is the correct behaviour? To my understanding, List style
> formatting should always prevail over paragraph styles. But does there also
> need to be a way for the user to apply an "After text" indent?

My understanding: paragraph styles should always prevail over list styles

So is there a hierarching (should also include character styles)
=> cc: Design-Team
Comment 3 R. Green 2020-08-06 17:50:44 UTC
(In reply to Dieter from comment #2)
> My understanding: paragraph styles should always prevail over list styles …
IMV, the evidence suggests the opposite: If PARAGRAPH style indents were meant to prevail, then why duplicate these same properties in LIST styles? The duplication is easily explained by the fact that LIST style indents are meant to overrule PARAGRAPH indents. Also, what would be the point of splitting "Position" properties between two different dialogues?

But, as you say, it's one for the design team.
Comment 4 Regina Henschel 2020-08-06 20:29:36 UTC
There is no choice about the behavior, but it is specified in ODF. Read https://oasis-tcs.github.io/odf-tc/odf1.3/content.odf13-schema.html#element-style_list-level-label-alignment (17.20, part 3)

If the paragraph inside the list-item has a style, which specifies fo:text-indent and/or fo:margin-left, then the indents from the paragraph are used.

Besides that, there are rules of precedence in https://oasis-tcs.github.io/odf-tc/odf1.3/content.odf13-schema.html#ListDefaultStyle (5.3.2, part3).

So nothing to do for the design team.
Comment 5 R. Green 2020-08-07 09:46:08 UTC
Paragraph 17.20, part 3, solves the problem. List style indents prevail as long as NO manual changes have been made to the corresponding paragraph style indents. Any manual change to paragraph style indents, even a return to zero, overrides the corresponding List style indents.

Pressing "Standard", apparently, resets the "Indents and Spacing" tab to the default settings which allows the LIST styles to take precedence.

This issue can be closed, thanks.