X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/40a66c8feb465a5d40035272bfd2b95e9027b7dd..f062d83d5999fa0540aabef056fa21ef225728fd:/lib/librarian/html.py?ds=sidebyside 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