projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dae0586
)
tools/make-man-index: fix purpose text that contains tags
v246.2
author
Haochen Tong
<i@hexchain.org>
Sun, 16 Aug 2020 01:28:46 +0000
(
03:28
+0200)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Mon, 17 Aug 2020 16:33:43 +0000
(18:33 +0200)
(cherry picked from commit
f3317336450e1145b97ae9e38bd626f3d4c88eb8
)
tools/make-man-index.py
patch
|
blob
|
history
diff --git
a/tools/make-man-index.py
b/tools/make-man-index.py
index 4d206ca0b6bb741f9ce2e0d9d012d469e7a2682b..37c708d81dc0953df4bcc2183a49331838da6ae9 100755
(executable)
--- a/
tools/make-man-index.py
+++ b/
tools/make-man-index.py
@@
-55,7
+55,8
@@
def make_index(pages):
check_id(p, t)
section = t.find('./refmeta/manvolnum').text
refname = t.find('./refnamediv/refname').text
- purpose = ' '.join(t.find('./refnamediv/refpurpose').text.split())
+ purpose_text = ' '.join(t.find('./refnamediv/refpurpose').itertext())
+ purpose = ' '.join(purpose_text.split())
for f in t.findall('./refnamediv/refname'):
infos = (f.text, section, purpose, refname)
index[f.text[0].upper()].append(infos)