Bug 108718

Summary: "After text" indent from paragraph style is disregarded when a numbering style is set for the paragraph
Product: LibreOffice Reporter: Aron Budea <aron.budea>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: rb.henschel
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103369, 107833    
Attachments: Sample document
Combining list indent with paragraph indent
combining list indent with paragraph right indent

Description Aron Budea 2017-06-23 14:16:04 UTC
Created attachment 134229 [details]
Sample document

In the attached document I modified Heading 1 to have a distinctly large After text indent, and duplicated a paragraph. In one of the paragraphs I set a numbering style. You wouldn't normally set it for just one, it's only for comparison (though interestingly I can't set outline numbering for the paragraph style).

I can see the values from the numbering style's Position tab completely overriding the Indents from the paragraph style, which I can kind of understand for "Before text" / "First line", but "After text" doesn't need to be overwritten, as nothing influences it from the numbering style.

Is that right, or something else should also be considered here?

Observed using LO 5.4beta2 & 3.3.0 / Windows 7.
Comment 1 Regina Henschel 2017-06-28 18:03:09 UTC
I see the problem too for simple paragraphs. If the right indent is defined in the style, then it is not shown. But if you define the right indent as direct formatting of the paragraph, then it works.

A fix needs to consider RTL scripts.
Comment 2 Regina Henschel 2017-06-29 15:46:30 UTC
Created attachment 134388 [details]
Combining list indent with paragraph indent

Examples, where fo:margin-left or fo:text-indent exists. These examples work as specified. Link to the spec is inside the document.
Comment 3 Regina Henschel 2017-06-29 15:55:03 UTC
Created attachment 134389 [details]
combining list indent with paragraph right indent

The current UI does not allow to not set fo:margin-left and fo:text-indent, in case you set fo:margin-right. Therefore I have removed fo:margin-left and fo:text-indent manually in the fodt-file.

The specification gives precedence of the paragraph settings over the label alignment of the list, if fo:margin-left or fo:text-indent exists on the paragraph. That is not the case here, because I have removed them. Expected behavior is, that the label alignment of the list is used, because the fo:margin-right attribute does not interfere with the list label position.

Observed behavior is, that LibreOffice uses the implementation default of 0cm for fo:margin-left and for fo:text-indent.
Comment 4 Regina Henschel 2017-12-06 16:17:54 UTC
The problem has already been reported.

*** This bug has been marked as a duplicate of bug 83532 ***