tab fill character spacing in multiple lines (alignment of alphabetical index)

Hi,
I have created my alphabetical index, some entries have many references, so I have multiple lines, but filling does not work as I would like.

Goofy.........................14
Pluto.....................4,6,12
Scrooge McDuck..........2,12,15,
18,19,21,56,59,65,83,88,99

But I would the last line ends at right

Goofy.........................14
Pluto.....................4,6,12
Scrooge McDuck................2,
12,15,18,19,21,56,59,65,83,88,99

I would to know if Libreoffice offers some option for me?
Thanks

You can achieve only an approximation of your requirement, something like:

Goofy.........................14
Pluto.....................4,6,12
Scrooge McDuck....2,12,15,18,19,
            21,56,59,65,83,88,99

The trick is to change alignment in Index 1 paragraph style (and perhaps also in Index 2 and Index 3 if you have multi-level index keys) to Right.

Note that the index machinery will try to fill lines as much as possible; it will not try to balance lines. Thus you may end up with

Goofy.........................14
Pluto.....................4,6,12
Scrooge McDuck.2,12,15,18,19,21,
                              56

There are slight improvements playing with indents (Before and First Line) but this requires two tabs in the entry line to defeat right alignment for the key and may have adverse effects with long keys.

Don’t hesitate to edit your question or comment if you need more details.

To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

In case you need clarification, edit your question (not an answer which is reserved for solutions) or comment the relevant answer.

Thank you for your answer. I must learn that Libreoffice does not offer this functionality, the development of which would be possible.