aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2013-08-11 13:21:30 +0000
committerTatsuya Kinoshita <tats@debian.org>2013-08-11 13:21:30 +0000
commit005b8c36406bb14d687738b2ba5e77d80c630bc1 (patch)
treef2e12a051a614a4c900361527973c1126277c105
parentUpdate debian/copyright (diff)
downloadw3m-005b8c36406bb14d687738b2ba5e77d80c630bc1.tar.gz
w3m-005b8c36406bb14d687738b2ba5e77d80c630bc1.zip
Update gitlog2changelog for well handling of short comment
-rwxr-xr-xdebian/gitlog2changelog3
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/, $/: /;