Skip to content

Commit

Permalink
Added getting the id of a special item
Browse files Browse the repository at this point in the history
  • Loading branch information
drgrigg committed Dec 29, 2023
1 parent 95020b2 commit 815936a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions se/se_epub_generate_toc.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ def process_headings(dom: EasyXmlTree, textf: str, toc_list: list, single_file:
if special_item.title is None:
special_item.title = "NO TITLE"
special_item.file_link = textf
special_item.id = textf.replace('.xhtml','') # quick and dirty way of getting the id of a special item
special_item.place = place
toc_list.append(special_item)
return
Expand Down

0 comments on commit 815936a

Please sign in to comment.