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 <daniel@haxx.se>
Closes #8887
This commit is contained in:
Viktor Szakats 2022-05-20 05:58:05 +00:00
parent a7a18d7589
commit fde1cb9247
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

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