Issue 105935 - Hanging indents are misaligned when the paragraph has a border
Summary: Hanging indents are misaligned when the paragraph has a border
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOo 3.1.1
Hardware: PC All
: P3 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
: 108843 (view as issue list)
Depends on:
Blocks:
 
Reported: 2009-10-15 23:19 UTC by Joe Smith
Modified: 2017-05-20 11:15 UTC (History)
2 users (show)

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


Attachments
Sample document showing problem (12.15 KB, application/vnd.oasis.opendocument.text)
2009-10-15 23:20 UTC, Joe Smith
no flags Details
Updated sample document (14.60 KB, application/vnd.oasis.opendocument.text)
2009-10-17 20:22 UTC, Joe Smith
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Joe Smith 2009-10-15 23:19:05 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.
Comment 1 Joe Smith 2009-10-15 23:20:08 UTC
Created attachment 65393 [details]
Sample document showing problem
Comment 2 michael.ruess 2009-10-16 09:27:13 UTC
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.
Comment 3 Joe Smith 2009-10-16 20:42:35 UTC
The same problem occurs with list paragraphs where the label (number or bullet)
is in a hanging indent--i.e., followed by a tab.
Comment 4 Joe Smith 2009-10-17 20:21:03 UTC
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.
Comment 5 Joe Smith 2009-10-17 20:22:25 UTC
Created attachment 65422 [details]
Updated sample document
Comment 6 michael.ruess 2010-02-02 15:58:12 UTC
*** Issue 108843 has been marked as a duplicate of this issue. ***
Comment 7 Oliver-Rainer Wittmann 2010-03-19 15:37:22 UTC
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.

Comment 8 Christian 2012-11-13 13:30:31 UTC
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
Comment 9 Marcus 2017-05-20 11:15:36 UTC
Reset assigne to the default "issues@openoffice.apache.org".