aboutsummaryrefslogtreecommitdiff
path: root/docs/cmdline-opts
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-12-17 18:14:01 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-12-17 18:14:01 +0100
commit58206f0ef21df5f20b4932f2fdce181abd579cfe (patch)
treee15e3a51150383852de438ee4ea4edb77e762750 /docs/cmdline-opts
parentc47b1eced74a6c8b5cd27b2779f7fd7dbbb9d31a (diff)
cmdline-opts/gen.pl: trim off trailing spaces
Diffstat (limited to 'docs/cmdline-opts')
-rwxr-xr-xdocs/cmdline-opts/gen.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/cmdline-opts/gen.pl b/docs/cmdline-opts/gen.pl
index 6fe24be1e..c8b129360 100755
--- a/docs/cmdline-opts/gen.pl
+++ b/docs/cmdline-opts/gen.pl
@@ -210,8 +210,9 @@ sub single {
}
if($foot[0]) {
print "\n";
- print @foot;
- print "\n";
+ my $f = join("", @foot);
+ $f =~ s/ +\z//; # remove trailing space
+ print "$f\n";
}
return 0;
}