mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 10:13:34 +08: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:
parent
56f9a56a6f
commit
fe45f8dc9b
@ -539,7 +539,8 @@ $ systemd-vmspawn \
|
||||
enforcing=0
|
||||
</programlisting>
|
||||
|
||||
<para>Note: this example also uses a kernel command line argument to ensure SELinux isn't started in enforcing mode.</para>
|
||||
<para>Note: this example also uses a kernel command line argument to ensure SELinux isn't started in
|
||||
enforcing mode.</para>
|
||||
</example>
|
||||
|
||||
<example>
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user