Apache OpenOffice (AOO) Bugzilla – Issue 105935
Hanging indents are misaligned when the paragraph has a border
Last modified: 2017-05-20 11:15:36 UTC
Steps to reproduce: 1) File > New > Text Document 2) Insert a paragraph: "dt" F3 3) Replace the space between the first and second words with a tab character 4) Format > Paragraph > Indents & Spacing > Spacing: Before text: 2.4cm First line: -1.6cm Note that the paragraph's body, including the first line after the tab, has a flush alignment. 5) Format > Paragraph > Borders > Line arrangement: All four borders; Spacing to contents: 0.3cm 6) OK Note that now the first line, after the tab, does not align with the rest of the paragraph body. The paragraph body alignment appears to be shifted by the left border width, while the tab stop is not, making the tab space too small. I see the same problem with OOo 2.4.2.
Created attachment 65393 [details] Sample document showing problem
MRU->OD: hanging indent where a tab is placed in the "hanging" part of the first line, will be misaligned to the second and successive lines of the paragraph. See sample.
The same problem occurs with list paragraphs where the label (number or bullet) is in a hanging indent--i.e., followed by a tab.
I see now that this is a consistent behavior with all tab stops: While tab stops are relative to any left indent (Paragraph > Indent > Before text), they ignore any left border spacing. Maybe this behavior is something that can't be changed, but it makes hanging indents or numbering incompatible with border spacing. A possible workaround is to use a frame to provide the border. Although it's a lot more work to manage the frame, the hanging indent does align properly.
Created attachment 65422 [details] Updated sample document
*** Issue 108843 has been marked as a duplicate of this issue. ***
Reproduced the described - defect occurs since OOo 2.0. Defect cause: Calculation of the automatic tab stop position at the left margin for negative indented first lines does not consider the left border spacing.
Fail-safe Work Around (According to repro in comment #0) 1. Add a tab to the paragraph at 2.4cm + 0.3cm = 2.7 cm 2. Add a tab character after the first tab character You need to adjust the tab whenever you change the spacing to contents. Experiment Work Around, found through failure isolation 1. Unpack the document 2. Change the TabsRelativeToIndent configuration setting from true to false 3. Pack the document I don't know how to change the setting in Writer directly. Caution: This will probably cause other side effects. Tested with AOO 3.4.1
Reset assigne to the default "issues@openoffice.apache.org".