From d92a01e8202a493a022161539007d5f6f9f8a244 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 29 May 2014 11:30:15 -0400 Subject: Reformat 0255 changelog. Tweak formatter script. --- scripts/maint/format_changelog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/maint/format_changelog.py b/scripts/maint/format_changelog.py index ac96a7e8e..86f5c5039 100755 --- a/scripts/maint/format_changelog.py +++ b/scripts/maint/format_changelog.py @@ -116,7 +116,7 @@ def wrap_graf(words, prefix_len1=0, prefix_len2=0, width=72): return lines def hyphenateable(word): - if re.match(r'^[^\d\-].*-', word): + if re.match(r'^[^\d\-]\D*-', word): stripped = re.sub(r'^\W+','',word) stripped = re.sub(r'\W+$','',word) return stripped not in NO_HYPHENATE @@ -218,7 +218,7 @@ class ChangeLog(object): elif tp == TP_ITEMBODY: if self.curgraf is None: self.curgraf = [] - self.cursection[2][1][-1].append(self.curgraf) + self.cursection[2][-1][1].append(self.curgraf) self.curgraf.append(line) else: -- cgit v1.2.3