From d2147cc7ba5c5d5114bae61000cbf757353c3ed6 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 25 Apr 2014 22:01:48 -0400 Subject: [PATCH] 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 e4387e14a..8559b7149 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 . Fixes diff --git a/contrib/format_changelog.py b/contrib/format_changelog.py index 123005322..6997d958a 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