From 005b8c36406bb14d687738b2ba5e77d80c630bc1 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sun, 11 Aug 2013 22:21:30 +0900 Subject: Update gitlog2changelog for well handling of short comment --- debian/gitlog2changelog | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'debian/gitlog2changelog') 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/, $/: /; -- cgit v1.2.3