-
Notifications
You must be signed in to change notification settings - Fork 73
Description
Summary
Fix tab leader rendering in Word-generated Tables of Contents so leaders don't overlap with section titles and page numbers.
Problem
When a Word document with an auto-generated TOC is opened in SuperDoc, the tab leaders (dotted, dashed, or solid lines) overlap with the header
text/page numbers on the right and section titles on the left.
Repro
- Open attached docx files in SuperDoc (one with dotted tabs, one with lined tabs).
- Observe tab leaders extending into the section title text on the left.
- Observe tab leaders overlapping with page numbers on the right.
Expected
Tab leaders render between the section title and page number without overlapping either, matching Word's behavior.
Notes
The issue involves w:tabs / w:tab elements with w:leader attributes (dot, hyphen, underscore, heavy). The leaders need to be bounded between the end of the text content and the tab stop position. Two sample documents are attached (dotted and lined tabs).
Attachments
Want to work on this? Check the Contributing Guide to get started. Comment on this issue to let us know you're picking it up.
Ref: SD-1452