Skip to content

Commit a3c1cbd

Browse files
committed
Use Text::Wrap::fill() for ChangeLog body, not wrap().
1 parent e670d2a commit a3c1cbd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/log2cl.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848

4949
# Wrap like "hg log --template=changelog"
5050
$Text::Wrap::columns = 77;
51+
# Don't preserve tabs
52+
$Text::Wrap::unexpand = 0;
5153

5254
while (<LOG>) {
5355
chomp;
@@ -110,6 +112,6 @@ sub print_entry
110112
my $files = "* " . join(", ", @_) . ":";
111113

112114
print wrap("\t", "\t", $files) . "\n";
113-
print wrap("\t", "\t", $body) . "\n";
115+
print fill("\t", "\t", $body) . "\n";
114116
print "\t[$hash]\n\n";
115117
}

0 commit comments

Comments
 (0)