New submission from Giuseppe Scelsi <[EMAIL PROTECTED]>: >>> textwrap.fill('File stdio.h is nice.', ... fix_sentence_endings=True) 'File stdio.h is nice.' ^-- wrong double space!
The problem is with the compiled regexp 'sentence_end_re' in 'textwrap.py'. A possible fix would be to add the following line after line 90 in textwrap.py: r'$' # end of chunk Giuseppe ---------- components: Library (Lib) messages: 65501 nosy: gscelsi severity: normal status: open title: textwrap: bug in 'fix_sentence_endings' option type: behavior versions: Python 2.4 __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2635> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com