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

Added getting the id of a special item #632

Merged
merged 5 commits into from
Dec 30, 2023
Merged

Added getting the id of a special item #632

merged 5 commits into from
Dec 30, 2023

Conversation

drgrigg
Copy link
Contributor

@drgrigg drgrigg commented Dec 29, 2023

Addresses issue #631

In this production, part 1, part 2, part 3 etc are "special items" which we create when we find no headings. Such items were not assigned ids in the code. This meant that child items couldn't find their parent id, hence no indenting.

This pull request fixes that by assigning the file name (without the .xhtml) as the toc item id, and they are then found by child items.

@acabal acabal merged commit b77add6 into master Dec 30, 2023
2 checks passed
@acabal
Copy link
Member

acabal commented Dec 30, 2023

Great work David, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants