X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/65a1f637391920c91a42cfd36695e55b84a1eb95..2ef63bb1d6e81ac9b2251f201615a00f0a458f35:/lib/librarian/html.py?ds=sidebyside diff --git a/lib/librarian/html.py b/lib/librarian/html.py index 8d256ee95..f5ad1389d 100644 --- a/lib/librarian/html.py +++ b/lib/librarian/html.py @@ -212,7 +212,7 @@ def add_table_of_contents(root): counter = 1 for element in root.iterdescendants(): if element.tag in ('h2', 'h3'): - if any_ancestor(element, lambda e: e.get('id') in ('footnotes',)): + if any_ancestor(element, lambda e: e.get('id') in ('footnotes',) or e.get('class') in ('person-list',)): continue if element.tag == 'h3' and len(sections) and sections[-1][1] == 'h2':