expect = ['And she said, "Go to hell!" Can you believe that?']
self.check(wrapper.wrap(text), expect)
+ text = 'File stdio.h is nice.'
+ expect = ['File stdio.h is nice.']
+ self.check(wrapper.wrap(text), expect)
+
def test_wrap_short(self):
# Wrapping to make short lines longer
sentence_end_re = re.compile(r'[%s]' # lowercase letter
r'[\.\!\?]' # sentence-ending punct.
r'[\"\']?' # optional end-of-quote
+ r'\Z' # end of chunk
% string.lowercase)
Library
-------
+- Issue #2635: Fix bug in 'fix_sentence_endings' textwrap.fill option,
+ where an extra space was added after a word containing (but not
+ ending in) '.', '!' or '?'.
+
- Add from_buffer() and from_buffer_copy() class methods to ctypes
data types