X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/40a66c8feb465a5d40035272bfd2b95e9027b7dd..246f9be0865013c50893bdb55d41b3015a89b87e:/lib/librarian/html.py?ds=inline diff --git a/lib/librarian/html.py b/lib/librarian/html.py index bb5a637a2..3dd70f56e 100644 --- a/lib/librarian/html.py +++ b/lib/librarian/html.py @@ -109,7 +109,7 @@ def extract_fragments(input_filename): for event, element in etree.iterparse(input_filename, events=('start', 'end')): # Process begin and end elements - if element.tag == 'span' and element.get('class', '') in ('theme-begin', 'theme-end'): + if element.get('class', '') in ('theme-begin', 'theme-end'): if not event == 'end': continue # Process elements only once, on end event # Open new fragment