X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/e394602de9243608d1e99a3de448a75646f1a77f..1788a3460def290cf9dd0eff514e77c5d427bcc5:/librarian/html.py?ds=sidebyside 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)