Просмотр исходного кода

Fix hyphen handling in format_changelog

Nick Mathewson 10 лет назад
Родитель
Сommit
d2147cc7ba
2 измененных файлов с 8 добавлено и 7 удалено
  1. 6 6
      ChangeLog
  2. 2 1
      contrib/format_changelog.py

+ 6 - 6
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
       FreeBSD. To enable it, set "TransProxyType ipfw". Resolves ticket
       10267; patch from "yurivict".
       10267; patch from "yurivict".
     - Support OpenBSD's divert-to rules with the pf firewall for
     - 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
       pf.conf(5) manual page for information on configuring pf to use
       divert-to rules. Closes ticket 10896; patch from Dana Koch.
       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.
       CPPFLAGS. Fixes bug 11296; bugfix on 0.2.5.3-alpha.
 
 
   o Minor bugfixes (bridges):
   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):
   o Minor bugfixes (platform-specific):
     - Fix compilation on Solaris, which does not have <endian.h>. Fixes
     - Fix compilation on Solaris, which does not have <endian.h>. Fixes

+ 2 - 1
contrib/format_changelog.py

@@ -110,7 +110,8 @@ class ChangeLog(object):
         text = " ".join(re.sub(r'\s+', ' ', line.strip()) for line in par)
         text = " ".join(re.sub(r'\s+', ' ', line.strip()) for line in par)
         print textwrap.fill(text, width=72,
         print textwrap.fill(text, width=72,
                             initial_indent=" "*indent1,
                             initial_indent=" "*indent1,
-                            subsequent_indent=" "*indent2)
+                            subsequent_indent=" "*indent2,
+                            break_on_hyphens=False)
 
 
     def dump(self):
     def dump(self):
         print self.mainhead
         print self.mainhead