Fix make dist
authorZoltan Varga <vargaz@gmail.com>
Thu, 27 Oct 2011 00:00:45 +0000 (02:00 +0200)
committerZoltan Varga <vargaz@gmail.com>
Thu, 27 Oct 2011 00:01:09 +0000 (02:01 +0200)
scripts/commits-to-changelog.py

index c95f230e7d5d74fcd08fb77a52386ca5acce0d09..bec87d9e582305395e27b68a6fdc53176549dffa 100755 (executable)
@@ -52,6 +52,8 @@ def changelogs_for_file_pattern (pattern, changed_files):
 def format_paragraph (paragraph):
     lines = []
     words = paragraph.split ()
+    if len (words) == 0:
+        return lines
     current = words [0]
     for word in words [1:]:
         if len (current) + 1 + len (word) <= fill_column: