From 55f2beeef9b6131b8ff3d8190dee674639708e93 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 28 Sep 2021 11:51:57 +0200 Subject: fixup gen.pl to not leave trailing newlines when removing 'Added in' --- docs/cmdline-opts/gen.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cmdline-opts/gen.pl b/docs/cmdline-opts/gen.pl index c8465a4b5..eb9b32849 100755 --- a/docs/cmdline-opts/gen.pl +++ b/docs/cmdline-opts/gen.pl @@ -79,7 +79,7 @@ sub printdesc { if($d =~ /\(Added in ([0-9.]+)\)/i) { my $ver = $1; if(too_old($ver)) { - $d =~ s/\(Added in $ver\)//gi; + $d =~ s/ *\(Added in $ver\)//gi; } } if($d !~ /^.\\"/) { -- cgit v1.2.1