From: Radek Czajka Date: Mon, 3 Feb 2014 13:19:20 +0000 (+0100) Subject: Fix HTML TOC themes issue. X-Git-Tag: 1.7~114 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/118a8cf1045eee8369f21236e1400189f3ec2647 Fix HTML TOC themes issue. --- diff --git a/librarian/html.py b/librarian/html.py index 8703150..8822f96 100644 --- a/librarian/html.py +++ b/librarian/html.py @@ -222,7 +222,7 @@ def add_anchors(root): def raw_printable_text(element): working = copy.deepcopy(element) for e in working.findall('a'): - if e.get('class') == 'annotation': + if e.get('class') in ('annotation', 'theme-begin'): e.text = '' return etree.tostring(working, method='text', encoding=unicode).strip()