1
0
mirror of https://github.com/systemd/systemd.git synced 2025-08-02 04:22:27 +03:00

man: fix a few bogus entries in directives index

When wrong element types are used, directives are sometimes placed in the wrong
section. Also, strip part of text starting with "'", which is used in a few
places and which is displayed improperly in the index.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-11-21 20:33:26 +01:00
parent b0343f8c96
commit f8b68539d0
13 changed files with 27 additions and 23 deletions

View File

@ -190,7 +190,7 @@ def _extract_directives(directive_groups, formatting, page):
stor[text].append((pagename, section))
if text not in formatting:
# use element as formatted display
if name.text[-1] in '= ':
if name.text[-1] in "= '":
name.clear()
else:
name.tail = ''