diff --git a/scripts/log2cl.pl b/scripts/log2cl.pl index a20cd220a..8be892d8d 100755 --- a/scripts/log2cl.pl +++ b/scripts/log2cl.pl @@ -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 () { 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"; }