From: Daniel Stenberg Date: Tue, 25 Jun 2024 14:28:33 +0000 (+0200) Subject: managen: fix blank line detection X-Git-Tag: curl-8_9_0~190 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c1845dc0e2329685059f3533dc296c182a47a1aa;p=thirdparty%2Fcurl.git managen: fix blank line detection Follow-up to d14a53eea7b87 which ruined the output somewhat. Closes #14017 --- diff --git a/scripts/managen b/scripts/managen index ef30e7e163..b032b3c214 100755 --- a/scripts/managen +++ b/scripts/managen @@ -276,13 +276,13 @@ sub render { my $top = ($line == 1); my $quote; my $level; - my $blankline; + my $finalblank; $start = 0; while(<$fh>) { my $d = $_; $line++; - $blankline = ($d eq "\n"); + $finalblank = ($d eq "\n"); if($d =~ /^\.(SH|BR|IP|B)/) { print STDERR "$f:$line:1:ERROR: nroff instruction in input: \".$1\"\n"; return 4; @@ -450,7 +450,7 @@ sub render { $header = 0; } - if($blankline) { + if($finalblank) { print STDERR "$f:$line:1:ERROR: trailing blank line\n"; exit 3; }