From: Marek Stępniowski Date: Tue, 16 Sep 2008 10:32:29 +0000 (+0200) Subject: Added anchors to themes in book text. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/e09496eb5725b2dd860dfc6b91cbfc88b6237041 Added anchors to themes in book text. --- diff --git a/lib/librarian/book2html.xslt b/lib/librarian/book2html.xslt index d6c9db1d5..827c696b8 100644 --- a/lib/librarian/book2html.xslt +++ b/lib/librarian/book2html.xslt @@ -1,7 +1,7 @@ - + @@ -248,10 +248,9 @@ - - + - + 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