Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misalignment of hanging text of really long section names in the ToC #1152

Open
1 task done
ajeanmahoney opened this issue Aug 21, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@ajeanmahoney
Copy link
Collaborator

Describe the issue

The hanging indent of really long section names in the Table of Contents is inconsistent in all outputs.

In the text output, the hanging indent of the first-level section name aligns with the hanging indent of the second-level name, but it is correctly aligned in the HTML and PDF outputs. However, in the HTML and PDF outputs, the hanging text in the second- and third-level section names is not indented enough in the ToC. That is, it aligns under the section number rather than the section name text.

Current text output:

   2.  Conventions Used in This Document That I'm Trying to Make
           Really Long so I Can See the Indentation in the Table of
           Contents in the TXT Output
     2.1.  Terminology: A Gratuitously Long Title for Such a Short
           Section Plus Some More Words to Make It Longer
       2.1.1.  A Third-Level Section Heading Used in This Document
               That I'm Trying to Make Really Long so I Can See the
               Indentation in the Table of Contents in the TXT Output

Current HTML and PDF outputs:

   2.  Conventions Used in This Document That I'm Trying to Make
       Really Long so I Can See the Indentation in the Table of
       Contents in the TXT Output
     2.1.  Terminology: A Gratuitously Long Title for Such a Short
       Section Plus Some More Words to Make It Longer
       2.1.1.  A Third-Level Section Heading Used in This Document
         That I'm Trying to Make Really Long so I Can See the
         Indentation in the Table of Contents in the TXT Output

Desired output:

   2.  Conventions Used in This Document That I'm Trying to Make
       Really Long so I Can See the Indentation in the Table of
       Contents in the TXT Output
     2.1.  Terminology: A Gratuitously Long Title for Such a Short
           Section Plus Some More Words to Make It Longer
       2.1.1.  A Third-Level Section Heading Used in This Document
               That I'm Trying to Make Really Long so I Can See the
               Indentation in the Table of Contents in the TXT Output

Files:

Code of Conduct

@ajeanmahoney ajeanmahoney added the bug Something isn't working label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant