commit: bf62b78f01dd8676403b03af942c42a56a145625 Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> AuthorDate: Thu Jan 2 23:56:26 2020 +0000 Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> CommitDate: Thu Jan 2 23:56:26 2020 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=bf62b78f
bin/build_search_documents.py: <li/> is a terminal node, not intermediary Process <li/> as a terminal node. Reported-by: Ulrich Müller <ulm <AT> gentoo.org> Signed-off-by: Göktürk Yüksek <gokturk <AT> gentoo.org> bin/build_search_documents.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/build_search_documents.py b/bin/build_search_documents.py index b7b840c..6782969 100755 --- a/bin/build_search_documents.py +++ b/bin/build_search_documents.py @@ -83,10 +83,10 @@ def process_node(documents: list, node: ET.Element, name: str, url: str) -> None for child in node: process_node(documents, child, name, url) - elif node.tag in ['body', 'dl', 'guide', 'li', 'ul', 'table', 'tr']: + elif node.tag in ['body', 'dl', 'guide', 'ul', 'table', 'tr']: for child in node: process_node(documents, child, name, url) - elif node.tag in ['p', 'dd', 'dt', 'important', 'note', 'warning', 'th', 'ti']: + elif node.tag in ['p', 'dd', 'dt', 'important', 'li', 'note', 'warning', 'th', 'ti']: text = stringify_node(node) documents.append({'id': len(documents),