From 78cc051617f741295748e39768fa50c3431c1bd7 Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Sun, 13 Oct 2002 19:23:18 +0000 Subject: [PATCH] Fix copyright date: the core of this code actually dates back to 1999 (rev. 1.4 of distutils/fancy_getopt.py). --- Lib/textwrap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/textwrap.py b/Lib/textwrap.py index ff5f7efaa9..1ea815a34d 100644 --- a/Lib/textwrap.py +++ b/Lib/textwrap.py @@ -1,7 +1,7 @@ """Text wrapping and filling. """ -# Copyright (C) 2001 Gregory P. Ward. +# Copyright (C) 1999-2001 Gregory P. Ward. # Copyright (C) 2002 Python Software Foundation. # Written by Greg Ward @@ -56,7 +56,7 @@ class TextWrapper: # (after stripping out empty strings). wordsep_re = re.compile(r'(\s+|' # any whitespace r'-*\w{2,}-(?=\w{2,})|' # hyphenated words - r'(?<=\S)-{2,}(?=\S))') # em-dash + r'(?<=\S)-{2,}(?=\w))') # em-dash # XXX will there be a locale-or-charset-aware version of # string.lowercase in 2.3? -- 2.40.0