summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaochen Tong <i@hexchain.org>2020-08-16 03:28:46 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-08-17 18:33:43 +0200
commit946e4c43bb4ac189259b3cbc035400ca90a8148f (patch)
tree7096d23bc15bf3c6c0e4861a21aa44a0c2aa6aed
parentdae0586e91933bc43b6ba25e14479e1f53f6177f (diff)
downloadsystemd-246.2.tar.gz
tools/make-man-index: fix purpose text that contains tagsv246.2
(cherry picked from commit f3317336450e1145b97ae9e38bd626f3d4c88eb8)
-rwxr-xr-xtools/make-man-index.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/make-man-index.py b/tools/make-man-index.py
index 4d206ca0b6..37c708d81d 100755
--- 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)