Improve style of index with long entries

I have an index of all illustrations in my document. However, some of them have a long entry, which requires 2 lines in the index. As a result, it is not easy to see the page number at which the illustration occurs.

Edit: here is a screenshot

Example (I don’t have enough points to upload a screenshot):

Figure 1 : bla blabla blabla bla blabla bla blabla blabla bla blabla bla blabla blX blabla blabla blabla bla blabla.................................................................7
Figure 2: bla blabla blabla bla.........................................................12
Figure 3: bla blabla blabla bla bla blabla blabla bla...................................19

Is there a way to automatically format the index entries so that it looks like this instead? (see how the first line is cut after “blX”)

Figure 1 : bla blabla blabla bla blabla bla blabla blabla bla blabla bla blabla blX
blabla blabla blabla bla blabla........................................................7
Figure 2: bla blabla blabla bla.......................................................12
Figure 3: bla blabla blabla bla bla blabla blabla bla.................................19

(Unfortunately, after saving my question, I realized that the example above may look good only when I edit it, but not after saving…)

You may use a free image sharing service and post a link here

That’s what I did here (https://ibb.co/cZNvoF) but it doesn’t show up, so I will simply add the link.

Right click index and chose item “Edit index”. Go to tab “Entries”. Click on the T in the structure line. Then you should see a check box “Align right”. Check it.

Currently it is not possible to set the position of the tab beyond the right edge of the text. Do you have considered to emphasize the page number? You can define a character style for it with bold or color or larger font-size and set this character style to be used for the page number in the edit index dialog. As default you will see “none” there. If you use a larger font, set the text-to-text alignment in the paragraph style to “top”, so that the larger line spacing is below the number.

There exists a config item “TabOverMargin”. But in case of “right align tab”, “right” would be infinity, because a concrete tab position is ignored for right aligned tab in an index. Only since version 5.4 it works for left aligned tab. With that you would be able to set a left aligned tab at e.g. 16.5cm and set the right edge of the paragraph to 16cm to keep the text shorter than the position of the page number. The config item “TabOverMargin” is not available in the UI, but you would need to set it directly in the file. That is possible, if you save to fodt-Format.

Thanks, but I already checked “Align right”. Moreover, it’s hard to properly explain without being able to upload a small screenshot…

There is no way to automate this, sorry. Alignment on TOCs is quite primitive (see for example this report).

You can manually obtain the needed effect by unchecking the box “Protect against manual changes” and then just entering the needed line or paragraph breaks directly, but be aware that as soon as you update the TOC those manual modifications will disappear.