X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/3299c0d71150212730c3b7f9a1a54622c3213dc9..476a57f3dbf93a0b31707770c345a0734f3877cf:/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