https://bugs.documentfoundation.org/show_bug.cgi?id=172723
Bug ID: 172723
Summary: TOC Entries: the separator before Page Number should
not behave as a generic Tab Stop
Product: LibreOffice
Version: 3.3.0 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Created attachment 207670
--> https://bugs.documentfoundation.org/attachment.cgi?id=207670&action=edit
Writer document with the problem.
Description:
When editing the structure of a Table of Contents (Insert → Table of Contents
and Index → Table of Contents, Index or Bibliography → Entries), it is possible
to insert an additional Tab Stop (T) between Chapter Number (N#) and Entry Text
(E) by selecting the empty position and pressing the Tab Stop button.
For example, the structure changes from:
LS N# E T # LE
to:
LS N# T E T # LE
This works correctly as long as the entry text fits on a single line.
The problem appears when the entry text wraps onto multiple lines and the last
line begins before the position of the first inserted tab stop (i.e. the last
line starts to the left of that tab stop).
In this situation, the second Tab Stop (the one immediately preceding the page
number) is treated as a regular paragraph tab stop. Instead of acting as the
dedicated separator before the page number, it advances only to the next
physical tab stop.
As a consequence, the page number is aligned to an intermediate tab stop rather
than to its intended right-aligned position.
This issue only becomes visible when the entry wraps onto multiple lines;
single-line entries are not affected because the cursor is already positioned
beyond the intermediate tab stop.
Steps to Reproduce:
1-Create a document containing at least one heading with a sufficiently long
title so that its corresponding Table of Contents entry wraps onto multiple
lines.
2-Insert a Table of Contents.
3-Open Insert → Table of Contents and Index → Table of Contents, Index or
Bibliography.
4-Go to the Entries tab.
5-Select the TOC level corresponding to the long heading.
6-Insert an additional Tab Stop between Chapter Number (N#) and Entry Text (E)
so that the structure becomes:
LS N# T E T # LE
7-Set the position of this first Tab Stop so that the last line of the wrapped
TOC entry ends to the left of that tab stop.
8-Update the Table of Contents.
Actual Behaviour:
The Tab Stop immediately before the page number behaves as a regular paragraph
tab stop. Since the end of the last line is still located before the
intermediate tab stop, pressing that tab advances only to that intermediate
position instead of aligning the page number to the right margin.
The page number is therefore incorrectly aligned with the intermediate tab
stop.
Expected Behaviour:
The separator immediately preceding the Page Number (#) should always act as
the dedicated page-number separator, regardless of the position of the cursor
or any intermediate tab stops used for formatting the TOC entry.
Its behaviour should depend on its logical position in the TOC structure
(immediately before #), not on the next physical paragraph tab stop.
--
You are receiving this mail because:
You are the assignee for the bug.