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:
@ -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 = ''
|
||||
|
Reference in New Issue
Block a user