[tor-commits] [tor/master] Fix hyphen handling in format_changelog

nickm at torproject.org nickm at torproject.org
Sat Apr 26 02:02:48 UTC 2014


commit d2147cc7ba5c5d5114bae61000cbf757353c3ed6
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Apr 25 22:01:48 2014 -0400

    Fix hyphen handling in format_changelog
---
 ChangeLog                   |   12 ++++++------
 contrib/format_changelog.py |    3 ++-
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e4387e1..8559b71 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -77,9 +77,9 @@ Changes in version 0.2.5.4-alpha - 2014-04-25
       FreeBSD. To enable it, set "TransProxyType ipfw". Resolves ticket
       10267; patch from "yurivict".
     - Support OpenBSD's divert-to rules with the pf firewall for
-      transparent proxy ports. To enable it, set "TransProxyType pf-
-      divert". This allows Tor to run a TransPort transparent proxy port
-      on OpenBSD 4.4 or later without root privileges. See the
+      transparent proxy ports. To enable it, set "TransProxyType
+      pf-divert". This allows Tor to run a TransPort transparent proxy
+      port on OpenBSD 4.4 or later without root privileges. See the
       pf.conf(5) manual page for information on configuring pf to use
       divert-to rules. Closes ticket 10896; patch from Dana Koch.
 
@@ -187,9 +187,9 @@ Changes in version 0.2.5.4-alpha - 2014-04-25
       CPPFLAGS. Fixes bug 11296; bugfix on 0.2.5.3-alpha.
 
   o Minor bugfixes (bridges):
-    - Avoid potential crashes or bad behavior when launching a server-
-      side managed proxy with ORPort or ExtORPort temporarily disabled.
-      Fixes bug 9650; bugfix on 0.2.3.16-alpha.
+    - Avoid potential crashes or bad behavior when launching a
+      server-side managed proxy with ORPort or ExtORPort temporarily
+      disabled. Fixes bug 9650; bugfix on 0.2.3.16-alpha.
 
   o Minor bugfixes (platform-specific):
     - Fix compilation on Solaris, which does not have <endian.h>. Fixes
diff --git a/contrib/format_changelog.py b/contrib/format_changelog.py
index 1230053..6997d95 100755
--- a/contrib/format_changelog.py
+++ b/contrib/format_changelog.py
@@ -110,7 +110,8 @@ class ChangeLog(object):
         text = " ".join(re.sub(r'\s+', ' ', line.strip()) for line in par)
         print textwrap.fill(text, width=72,
                             initial_indent=" "*indent1,
-                            subsequent_indent=" "*indent2)
+                            subsequent_indent=" "*indent2,
+                            break_on_hyphens=False)
 
     def dump(self):
         print self.mainhead



More information about the tor-commits mailing list