diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2013-08-11 13:21:30 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2013-08-11 13:21:30 +0000 |
commit | 005b8c36406bb14d687738b2ba5e77d80c630bc1 (patch) | |
tree | f2e12a051a614a4c900361527973c1126277c105 /debian/gitlog2changelog | |
parent | Update debian/copyright (diff) | |
download | w3m-005b8c36406bb14d687738b2ba5e77d80c630bc1.tar.gz w3m-005b8c36406bb14d687738b2ba5e77d80c630bc1.zip |
Update gitlog2changelog for well handling of short comment
Diffstat (limited to '')
-rwxr-xr-x | debian/gitlog2changelog | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/gitlog2changelog b/debian/gitlog2changelog index 1e70f3f..e501b8f 100755 --- a/debian/gitlog2changelog +++ b/debian/gitlog2changelog @@ -61,7 +61,8 @@ sub print_entry { if ($comment =~ /^([^\n]+)/) { $short_comment = $1; } - if ($files_line_len + length($short_comment) > 78) { + if ($short_comment =~ /(:|,[ \t]*$)/ || + $files_line_len + length($short_comment) > 78) { $files_lines =~ s/, $/:\n\t/; } else { $files_lines =~ s/, $/: /; |