diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-05-29 11:30:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-05-29 11:30:15 -0400 |
commit | d92a01e8202a493a022161539007d5f6f9f8a244 (patch) | |
tree | c0c7baddf8ed3faa23a062c4c70a10ffd37474a3 /scripts | |
parent | 413a442f57abb084499d1aa363aee1f8a0b53ad8 (diff) | |
download | tor-d92a01e8202a493a022161539007d5f6f9f8a244.tar tor-d92a01e8202a493a022161539007d5f6f9f8a244.tar.gz |
Reformat 0255 changelog. Tweak formatter script.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/maint/format_changelog.py | 4 |
1 files changed, 2 insertions, 2 deletions
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: |