Bug 92486 - Short Heading with numbering in table of contents does not get structure tab stops applied correctly
Summary: Short Heading with numbering in table of contents does not get structure tab ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.3.2 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-02 06:53 UTC by Ray123
Modified: 2016-09-20 11:33 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Error with special word in table of content of a document (27.55 KB, application/force-download)
2015-07-02 06:53 UTC, Ray123
Details
ODT-Doc with error Layer4 (33.07 KB, application/zip)
2015-07-02 08:21 UTC, Ray123
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ray123 2015-07-02 06:53:31 UTC
Created attachment 116981 [details]
Error with special word in table of content of a document

If i use the word LAYER for a chapter in a document, the entry in the table of contents is formatted wrong, see the pdf-file
Comment 1 tommy27 2015-07-02 07:53:46 UTC
would you please upload the original .odt file as well (a stripped minimal testcase version would be better)?

can you tell if the issue was present in older LibO releases too?
Comment 2 Ray123 2015-07-02 08:21:08 UTC
Created attachment 116989 [details]
ODT-Doc with error Layer4

I shortened the file and zipped it, the error can be seen for the table of content:
Layer4 instead of Layer......4
I have no other LO-version available, so i can not tell you, if the bug occurs in older versions too
Comment 3 Gordo 2015-07-02 16:47:24 UTC
Paragraph style on “Contents 2”:
Indent before of 1.80 cm
First Line indent of -1.00 cm

In table of contents Level 2:
Tab stop of 1.00 cm between chapter number and entry relative to paragraph style indent

Paragraph formatting shows tab stop of 2.80 cm.

The entry is the first line of a paragraph so “Layer” is at 1.80 cm (0.80 cm + 1.00 cm).  There is still a tab stop at 2.80 cm in case there is another line.  Somehow the text of “Layer” is not long enough to go past that.

If something is typed after the heading in the document and the table of contents is updated then it shows correctly.

If a couple of characters are deleted from the heading and the table of contents is updated then the tab to 2.80 cm is visible with non-printing characters on.

The numbering in outline numbering adds first line indent to the paragraph style.  The tab stops relative to indent must be getting confused.

As a workaround press the tab key at the end of the heading in the document and update the table of contents.  It does not work with spaces.

Windows Vista 64
Version: 4.4.4.3
Build ID: 2c39ebcf046445232b798108aa8a7e7d89552ea8
Comment 4 QA Administrators 2016-09-20 10:14:00 UTC Comment hidden (obsolete)
Comment 5 Ray123 2016-09-20 11:33:47 UTC
tested in LO V 5.1.3.2 with Win7 64Bit, the table of contents looks good now