From e09496eb5725b2dd860dfc6b91cbfc88b6237041 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Tue, 16 Sep 2008 12:32:29 +0200 Subject: [PATCH 1/1] Added anchors to themes in book text. --- lib/librarian/book2html.xslt | 7 +++---- lib/librarian/html.py | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) 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 -- 2.20.1