fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
48d44e2
)
Removed person list from table of contents.
author
Marek Stępniowski
<marek@stepniowski.com>
Wed, 24 Sep 2008 12:58:42 +0000
(14:58 +0200)
committer
Marek Stępniowski
<marek@stepniowski.com>
Wed, 24 Sep 2008 12:58:42 +0000
(14:58 +0200)
lib/librarian/html.py
patch
|
blob
|
history
diff --git
a/lib/librarian/html.py
b/lib/librarian/html.py
index
8d256ee
..
f5ad138
100644
(file)
--- a/
lib/librarian/html.py
+++ b/
lib/librarian/html.py
@@
-212,7
+212,7
@@
def add_table_of_contents(root):
counter = 1
for element in root.iterdescendants():
if element.tag in ('h2', 'h3'):
- if any_ancestor(element, lambda e: e.get('id') in ('footnotes',)):
+ if any_ancestor(element, lambda e: e.get('id') in ('footnotes',)
or e.get('class') in ('person-list',)
):
continue
if element.tag == 'h3' and len(sections) and sections[-1][1] == 'h2':