[Libreoffice-bugs] [Bug 134743] New: Table of Contents - "Tab position relative to paragraph style format" stops working

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Jul 12 06:41:53 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=134743

            Bug ID: 134743
           Summary: Table of Contents - "Tab position relative to
                    paragraph style format" stops working
           Product: LibreOffice
           Version: 6.4.4.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: fz1844 at gmail.com

Description:
The documents I create usually have two levels in the Table of Contents:
chapter items (which are numbered), and subtitles. The subtitles are based on a
paragraph style with and indent on the right side, so that when the Contents is
generated, the subtitle page numbers will be indented from the Chapter page
numbers.

Sometimes, this stops working, and all of page numbers are right-aligned to the
edge of the page. This has happened a few times over the last few years, so it
is not specific to the current release. I am now able to provide some sample
documents, so I am filing this bug report.

Unfortunately, I don't know what steps are required to reproduce it. But I can
tell you how I created the first sample document (which shows the problem).

I use a template with pre-defined styles for paragraph, character, page, and
numbering. This template already has a Table of Contents inserted, and a dummy
chapter heading.

1. Tonight I created the first document from the template, and then inserted
the basic book from a plain text file.

2. I then inserted a few Word docs in the middle of the text, using the
"Insert->Text from File..." command. Some of these docs had columns which
created Sections, but I deleted all the sections to remove the columns.

3. After marking the chapter headings and Subtitles with the proper Paragraph
styles, I updated the Table of Contents, and voila!...indentation problems; the
subtitle page numbers, which should have been indented on the right side by
about 1/4 inch, were right aligned to the page.

I tried changing various settings in the Table of Contents and in the Paragraph
and Character styles but nothing worked.

4. I then created a new Document from the same template, and copy/pasted the
chapters, one-by-one, over to the new document, updating the Table of Contents
after each chapter was inserted, to see if it broke. It did not break, and
looks just fine.

5. I then took the original Document with the problem, and tried "Load
Styles..." from the working document, telling it to overwrite all of them
(Page, Character, Paragraph, etc.). This did not change the original Document,
it still failed to align the subtitle page numbers properly.

So I'm guessing at this point that there may be some kind of corruption going
on in the Document, or perhaps some invisible characters, that causes the Table
of Contents to fail the alignment.

I'm including both Documents, so someone else with deeper knowledge of the
inner workings can analyze them to see what is different.

Steps to Reproduce:
See the Description.

Actual Results:
Level 2 Subtitle page numbers are right-aligned to the Page Text area in the
Table of Contents.

Expected Results:
Level 2 Subtitle page numbers should be indented by 1/4 inch from the right of
the Page Text area in the Table of Contents.


Reproducible: Sometimes


User Profile Reset: No



Additional Info:
I thought that once in the past I was able to fix this problem but can't
remember what I might have done. It could have involved taking out the breaks
before Chapter headings and re-implementing them...not sure. Hopefully someone
can compare the two documents to see what is the difference.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200712/6625044a/attachment.htm>


More information about the Libreoffice-bugs mailing list