From 980510926d97e0513c4495473618473b41695836 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 12 Nov 2022 00:07:34 +0100 Subject: [PATCH] log2changes.pl: wrap long lines at 80 columns Also, only use author names in the output. Fixes #9896 Reported-by: John Sherrill Closes #9897 --- scripts/log2changes.pl | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) 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: *(.*) +