Bug 134738 - Table of Contents: Changes to Tabs (in Paragraph styles) do not show when TOC is updated
Summary: Table of Contents: Changes to Tabs (in Paragraph styles) do not show when TOC...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.3.6.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: TableofContents-Indexes-Dialog
  Show dependency treegraph
 
Reported: 2020-07-11 21:39 UTC by Yvan Rose
Modified: 2020-08-03 16:20 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
File containing a ToC to test based on steps provided in description (32.01 KB, application/vnd.oasis.opendocument.text)
2020-07-11 21:39 UTC, Yvan Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yvan Rose 2020-07-11 21:39:04 UTC
Description:
Even if we change the paragraph style (specifically in the current case: tabs) assigned to an entry in a Table of Contents, the style change is not reflected in the index even after we update it.

The same works well in an older version of LO (5.2.7).  

Steps to Reproduce:
1. Select "Modify" paragraph style for an entry in the Toc
2. Change the TAB settings
3. Update index

Actual Results:
Updated index does not reflect the change in paragraph style 

Expected Results:
The style change should be reflected in the doc


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
This used to work well, I believe until a recent version of LO 6. I am sorry I cannot specify the earliest version when this happened.
Comment 1 Yvan Rose 2020-07-11 21:39:51 UTC
Created attachment 162912 [details]
File containing a ToC to test based on steps provided in description
Comment 2 Dieter 2020-07-19 15:20:49 UTC
I can change font style and font size of paragraph style and TOC is updated correctly. I won't expect, that a change of the tab-settings of the paragraph style affects layout of TOC. So please explain, what do you expect

=> NEEDINFO
Comment 3 Yvan Rose 2020-07-23 11:36:51 UTC
It is true that you can change font style and size. However, if you want to have something like a running set of dots or a line (for example) between the heading title and the page number (e.g. in the example I attached to my original post), then this property of paragraph style (within the Tabs settings of paragraph style), then nothing happens. You can neither create such a tab (a right aligned tab in this case) or modify an existing one. (All of this is working perfectly in the 5.2.7 legacy version of LO that I'm keeping on my computer.)
Comment 4 QA Administrators 2020-07-23 12:56:43 UTC Comment hidden (obsolete)
Comment 5 R. Green 2020-07-23 13:09:11 UTC Comment hidden (obsolete)
Comment 6 R. Green 2020-07-23 13:12:55 UTC Comment hidden (obsolete)
Comment 7 R. Green 2020-07-28 15:25:13 UTC
Apologies. My last two comments were based on a misunderstanding.

To create and edit TOC tabs you have to go to "Edit Index > Entries > Level." AFAIK, the Tabs in the Paragraph style are inactive "by design".
Comment 8 R. Green 2020-07-28 15:26:56 UTC Comment hidden (off-topic)
Comment 9 Yvan Rose 2020-07-28 17:26:45 UTC
(In reply to R. Green from comment #7)
> Apologies. My last two comments were based on a misunderstanding.
> 
> To create and edit TOC tabs you have to go to "Edit Index > Entries >
> Level." AFAIK, the Tabs in the Paragraph style are inactive "by design".

It would make no sense that tabs be inactive by design -- most ToCs in most books need some line to link a chapter/section heading to its relevant page.
Comment 10 Timur 2020-08-02 14:23:57 UTC
(In reply to R. Green from comment #7)
> To create and edit TOC tabs you have to go to "Edit Index > Entries >
> Level." AFAIK, the Tabs in the Paragraph style are inactive "by design".

I don't think so. In Entries we set what's possible, but that is not opposite to ToC entry paragraph style. 
Looks like a bug but let's call UX.
I repro also in older LO, I can't confirm it worked.
Comment 11 Heiko Tietze 2020-08-03 08:55:34 UTC
Confirming the issue. Even with a new style based on Index > Content 1 without tabs, this setting is not taken into the actual style (Styles Inspector shows no change but the name). 

I understand this as a bug; and changing these attributes should be possible, of course.
Comment 12 Mike Kaganski 2020-08-03 09:06:47 UTC
Tabs in index are controlled fully by "Table of Contents, Index or Bibliography" dialog. The tabs used in the index are not those defined in the paragraph style, but explicitly inserted by the index field, so they naturally don't use settings defined for *different* tab stops.

Go to the "Table of Contents, Index or Bibliography" dialog, open "Entries" tab, click on required level, then on "T" structure element, and define the fill characters there.

Resolving NOTABUG.
Comment 13 Yvan Rose 2020-08-03 13:44:45 UTC
Brilliant -- thank you Mike (and all who helped). I see this is a new method, or the other one (via paragraph style) was removed because redundant. Either way it works perfectly well. So no bug it is.

If I may, as you seem to understand this system very well, may I ask you (all) to consider the following bug, a longstanding issue (that appeared between 5.2.7 and 5.3):

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

(I'm happy to contribute examples, etc. if need be.)
Comment 14 Mike Kaganski 2020-08-03 14:00:59 UTC
(In reply to Yvan Rose from comment #13)
> I see this is a new method, or the other one (via paragraph style) was
> removed because redundant.

No, it worked that way from the start; and had never allowed to setup that using paragraph styles. I tested with 5.1 just in case. I suppose that you simply had a document where both paragraph style had the tab fill character, and the tab in ToC also had it, and you felt like paragraph style's one works.
Comment 15 Yvan Rose 2020-08-03 14:10:39 UTC
I just checked on my end. This is correct. To the difference that changing the paragraph styles assigned to each level in the ToC used to override that, something that stopped happening in new versions of LO. If this makes LO internally more logical I see no problem with this.
Comment 16 Dieter 2020-08-03 16:10:41 UTC
(In reply to Mike Kaganski from comment #12)
> Tabs in index are controlled fully by "Table of Contents, Index or
> Bibliography" dialog. The tabs used in the index are not those defined in
> the paragraph style, but explicitly inserted by the index field, so they
> naturally don't use settings defined for *different* tab stops.

So perhaps we should explain that in LO help about tabs in Indexes [1]? What do you think, Mike?

[1] https://help.libreoffice.org/7.0/en-GB/text/swriter/01/04120221.html?&DbPAR=WRITER&System=WIN
Comment 17 Timur 2020-08-03 16:20:30 UTC
Dieter, NAB often indicates a need to improve documentation, I think here that's the case, so open new or just convert this bug.