2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 01:49:11 +00:00

Use Text::Wrap::fill() for ChangeLog body, not wrap().

This commit is contained in:
Todd C. Miller 2024-12-27 12:43:16 -07:00
parent e670d2a85d
commit a3c1cbd881

View File

@ -48,6 +48,8 @@ my @lines;
# Wrap like "hg log --template=changelog"
$Text::Wrap::columns = 77;
# Don't preserve tabs
$Text::Wrap::unexpand = 0;
while (<LOG>) {
chomp;
@ -110,6 +112,6 @@ sub print_entry
my $files = "* " . join(", ", @_) . ":";
print wrap("\t", "\t", $files) . "\n";
print wrap("\t", "\t", $body) . "\n";
print fill("\t", "\t", $body) . "\n";
print "\t[$hash]\n\n";
}