From: Haochen Tong Date: Sun, 16 Aug 2020 01:28:46 +0000 (+0200) Subject: tools/make-man-index: fix purpose text that contains tags X-Git-Tag: v247-rc1~424 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3317336450e1145b97ae9e38bd626f3d4c88eb8;p=thirdparty%2Fsystemd.git tools/make-man-index: fix purpose text that contains tags --- diff --git a/tools/make-man-index.py b/tools/make-man-index.py index 4d206ca0b6b..37c708d81dc 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)