fnp
/
librarian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ca1a738
)
Fix HTML TOC themes issue.
author
Radek Czajka
<radekczajka@nowoczesnapolska.org.pl>
Mon, 3 Feb 2014 13:19:20 +0000
(14:19 +0100)
committer
Radek Czajka
<radekczajka@nowoczesnapolska.org.pl>
Mon, 3 Feb 2014 13:19:20 +0000
(14:19 +0100)
librarian/html.py
patch
|
blob
|
history
diff --git
a/librarian/html.py
b/librarian/html.py
index
8703150
..
8822f96
100644
(file)
--- 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'):
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()
e.text = ''
return etree.tostring(working, method='text', encoding=unicode).strip()