From 118a8cf1045eee8369f21236e1400189f3ec2647 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 3 Feb 2014 14:19:20 +0100 Subject: [PATCH] Fix HTML TOC themes issue. --- librarian/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.20.1