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:
Zbigniew Jędrzejewski-Szmek 2024-11-07 16:47:48 +01:00
parent 56f9a56a6f
commit fe45f8dc9b
44 changed files with 146 additions and 145 deletions

View File

@ -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>

View File

@ -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)