From 3333b0748fd76170f3b44bf9533b21889fa6685f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Wed, 24 Sep 2008 14:58:42 +0200 Subject: [PATCH] Removed person list from table of contents. --- lib/librarian/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librarian/html.py b/lib/librarian/html.py index 8d256ee95..f5ad1389d 100644 --- 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': -- 2.20.1