fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tracking book counts for shelves.
[wolnelektury.git]
/
lib
/
librarian
/
html.py
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'):
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':
continue
if element.tag == 'h3' and len(sections) and sections[-1][1] == 'h2':