From: Viktor Szakats Date: Fri, 20 May 2022 05:58:05 +0000 (+0000) Subject: log2changes: do not indent empty lines [ci skip] X-Git-Tag: curl-7_84_0~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fde1cb9247792dfeeb6e44a07c84ed3957cb4707;p=thirdparty%2Fcurl.git log2changes: do not indent empty lines [ci skip] This will omit two spaces of indentation from lines with no content, thus avoiding 'spaces @ EOL'. Reviewed-by: Daniel Stenberg Closes #8887 --- diff --git a/scripts/log2changes.pl b/scripts/log2changes.pl index 25447e8785..d3539cb60d 100755 --- a/scripts/log2changes.pl +++ b/scripts/log2changes.pl @@ -94,7 +94,7 @@ while() { $oldco = $co; $oldc = $c; $olddate = $date; - if($line++) { + if($line++ && $2 ne "") { print " "; } print $2."\n";