From: Daniel Stenberg Date: Fri, 11 Nov 2022 23:07:34 +0000 (+0100) Subject: log2changes.pl: wrap long lines at 80 columns X-Git-Tag: curl-7_87_0~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=980510926d97e0513c4495473618473b41695836;p=thirdparty%2Fcurl.git log2changes.pl: wrap long lines at 80 columns Also, only use author names in the output. Fixes #9896 Reported-by: John Sherrill Closes #9897 --- diff --git a/scripts/log2changes.pl b/scripts/log2changes.pl index 1af7057580..ee8a753eb5 100755 --- a/scripts/log2changes.pl +++ b/scripts/log2changes.pl @@ -37,6 +37,18 @@ sub nicedate { return $date; } +sub printmsg { + my ($p, $msg)=@_; + while(length($msg) > 77) { + print $p.substr($msg, 0, 77, "")."\n"; + $p=" "; + } + if($msg eq "") { + $p = ""; + } + print "$p$msg\n"; +} + print ' _ _ ____ _ ___| | | | _ \| | @@ -47,7 +59,6 @@ print Changelog '; -my $line; my $tag; while() { my $l = $_; @@ -61,44 +72,32 @@ while() { } } elsif($l =~ /^Author: *(.*) +