X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/e394602de9243608d1e99a3de448a75646f1a77f..74ca1f5739a7d7af361c67d0aa5748edf9adb57b:/librarian/html.py diff --git a/librarian/html.py b/librarian/html.py index 39e5a01..b126638 100644 --- a/librarian/html.py +++ b/librarian/html.py @@ -163,7 +163,8 @@ def extract_fragments(input_filename): # Process all elements except begin and end else: # Omit annotation tags - if len(element.get('name', '')) or element.get('class', '') == 'annotation': + if (len(element.get('name', '')) or + element.get('class', '') in ('annotation', 'anchor')): if event == 'end' and element.tail: for fragment_id in open_fragments: open_fragments[fragment_id].append('text', element.tail)