From c9a6042e37f3bb1fdd74a29ba2764ffe76944220 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 3 Apr 2012 12:06:36 +0200 Subject: [PATCH] html: no editor note in toc --- librarian/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librarian/html.py b/librarian/html.py index e04790f..c1a5e5b 100644 --- a/librarian/html.py +++ b/librarian/html.py @@ -234,7 +234,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',) or e.get('class') in ('person-list',)): + if any_ancestor(element, lambda e: e.get('id') in ('footnotes', 'nota_red') or e.get('class') in ('person-list',)): continue element_text = raw_printable_text(element) -- 2.20.1