]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
log2changes: do not indent empty lines [ci skip]
authorViktor Szakats <commit@vsz.me>
Fri, 20 May 2022 05:58:05 +0000 (05:58 +0000)
committerViktor Szakats <commit@vsz.me>
Fri, 20 May 2022 05:58:05 +0000 (05:58 +0000)
This will omit two spaces of indentation from lines with no content,
thus avoiding 'spaces @ EOL'.

Reviewed-by: Daniel Stenberg <daniel@haxx.se>
Closes #8887

scripts/log2changes.pl

index 25447e87852c064b7a7c3d80a2099d14d4777b89..d3539cb60de473f002ab76809a207725f93308d4 100755 (executable)
@@ -94,7 +94,7 @@ while(<STDIN>) {
         $oldco = $co;
         $oldc = $c;
         $olddate = $date;
-        if($line++) {
+        if($line++ && $2 ne "") {
             print "  ";
         }
         print $2."\n";