mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 04:03:36 +08:00
tools/make-man-index: fix purpose text that contains tags
This commit is contained in:
parent
209650b720
commit
f331733645
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user