summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-11-07 16:47:48 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-11-08 14:14:36 +0100
commitfe45f8dc9bf1e9be8de4e14838bc2d7befcf946b (patch)
tree3a890110001acf8e5b03a31bef3e00368920e15c /tools
parentman: update Fedora links to F41 (diff)
downloadsystemd-fe45f8dc9bf1e9be8de4e14838bc2d7befcf946b.tar.xz
systemd-fe45f8dc9bf1e9be8de4e14838bc2d7befcf946b.zip
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.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/update-dbus-docs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/update-dbus-docs.py b/tools/update-dbus-docs.py
index ce7161c5f1..17006f3d86 100755
--- a/tools/update-dbus-docs.py
+++ b/tools/update-dbus-docs.py
@@ -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)