]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmdline-opts/gen.pl: trim off trailing spaces
authorDaniel Stenberg <daniel@haxx.se>
Sat, 17 Dec 2016 17:14:01 +0000 (18:14 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 17 Dec 2016 17:14:01 +0000 (18:14 +0100)
docs/cmdline-opts/gen.pl

index 6fe24be1e734cb57c1d47df1bd1da1cb5d84160b..c8b129360bf043c5556c7167095857f13f35f16d 100755 (executable)
@@ -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;
 }