X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/3299c0d71150212730c3b7f9a1a54622c3213dc9..a5178216e32b433b9be6311c2d5f7a6e6fa1b1c5:/librarian/html.py diff --git a/librarian/html.py b/librarian/html.py index 70fc6e5..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