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