When typesetting content in InDesign, it is often necessary to put down points: either manually typing periods between the section titles and page numbers is a long history, or doing it automatically so that you can edit the text boundaries.
Instructions
Step 1
Option 1. If the lines were made manually, and it is necessary to make them set automatically. To do this, first select the text and replace the periods with spaces: Edit Find / Replace the period with a space, and then replace 3 spaces with 2, and after the number of replacements is reduced to 0, replace 2 spaces with Tab (denoted as ^ t -sign ^ is typed as 6 on the English keyboard).
Step 2
Now select the text and go to the TextTabulators menu. In the Outline box, put a point, select the arrow indicating the position of the right text margin and move it to the right to adjust the outbound point to the arrow◄, which means the right margin, aligning it with it.
Step 3
As a result, the Table of Contents will look like this. You can adjust the borders of the text by moving the arrows, and sometimes it doesn't hurt to Clear All if the borders of the text were initially different for each paragraph.
Step 4
Option 2. Select the text, go to the top menu Text-Paragraph Styles or the pop-up menu Paragraph Styles Edit Paragraph go to the Tabs tab and in the same way set a point in the Dots section and move the text borders using the arrow on the right.
Step 5
Option 3 (the easiest one). Select the text Go to the Text-Tabs menu, set the point in the Outlines section and move the border of the text. Deselecting Place the cursor between the text and the page number Press Tab and voila - a line appears!