X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/181c5739f47d2adb00ba115bb4766584a1bc37e4..84e70971964e9ead7ee75ea37a404d01666a1f98:/librarian/html.py?ds=inline diff --git a/librarian/html.py b/librarian/html.py index f29a9b9..c634874 100644 --- a/librarian/html.py +++ b/librarian/html.py @@ -208,7 +208,7 @@ def any_ancestor(element, test): def add_anchors(root): counter = 1 for element in root.iterdescendants(): - if any_ancestor(element, lambda e: e.get('class') in ('note', 'motto', 'motto_podpis', 'dedication') + if any_ancestor(element, lambda e: e.get('class') in ('note', 'motto', 'motto_podpis', 'dedication', 'frame') or e.get('id') == 'nota_red' or e.tag == 'blockquote'): continue @@ -288,6 +288,7 @@ def add_table_of_themes(root): for i, fragment in enumerate(fragments): item = etree.SubElement(themes_li, 'a', href="#%s" % fragment) item.text = str(i + 1) + item.tail = ' ' root.insert(0, themes_div)