mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
man: drop whitespace from final <programlisting> lines
In the troff output, this doesn't seem to make any difference. But in the html output, the whitespace is sometimes preserved, creating an additional gap before the following content. Drop it everywhere to avoid this.
This commit is contained in:
@@ -228,7 +228,7 @@ def subst_output(document, programlisting, stats, missing_version):
|
||||
xml = etree.fromstring(out, parser=xml_parser())
|
||||
|
||||
new_text, declarations, interfaces = xml_to_text(node, xml, only_interface=interface)
|
||||
programlisting.text = '\n' + new_text + ' '
|
||||
programlisting.text = '\n' + new_text
|
||||
|
||||
if declarations:
|
||||
missing = check_documented(document, declarations, stats, interface, missing_version)
|
||||
|
||||
Reference in New Issue
Block a user