From 815936ab2c3a5843f75e50f832107d099c004e60 Mon Sep 17 00:00:00 2001 From: David Grigg Date: Fri, 29 Dec 2023 17:09:04 +1100 Subject: [PATCH] Added getting the id of a special item --- se/se_epub_generate_toc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/se/se_epub_generate_toc.py b/se/se_epub_generate_toc.py index abd1badc..75027091 100644 --- a/se/se_epub_generate_toc.py +++ b/se/se_epub_generate_toc.py @@ -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