Skip to content

Commit

Permalink
Use Text::Wrap::fill() for ChangeLog body, not wrap().
Browse files Browse the repository at this point in the history
  • Loading branch information
millert committed Dec 27, 2024
1 parent e670d2a commit a3c1cbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/log2cl.pl
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@

# Wrap like "hg log --template=changelog"
$Text::Wrap::columns = 77;
# Don't preserve tabs
$Text::Wrap::unexpand = 0;

while (<LOG>) {
chomp;
Expand Down Expand Up @@ -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";
}

0 comments on commit a3c1cbd

Please sign in to comment.