[Mailman-Developers] Strange behaviour
Barry Warsaw
barry at python.org
Tue Oct 7 17:55:45 EDT 2003
On Tue, 2003-10-07 at 17:47, Mikhail Sobolev wrote:
> I am sorry, but I do not really see this as an expected behaviour. As I
> said the newlines are replaced with nothing.
>
> I have the text:
>
> Blah blah blah
> oops oops oops
>
> And after the reformatting I expect:
>
> Blah blah blah oops oops oops
>
> while I get
>
> Blah blah blahoops oops oops
Yes, the fact that the newline is getting eaten is not expected
behavior. Here's a sample session; you can try to reproduce this with
some real text by cd'ing into /usr/local/mailman and starting python
like so:
% cd /usr/local/mailman
% python
Python 2.3.2 (#1, Oct 3 2003, 08:18:26)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from Mailman.Utils import wrap
>>> wrap("""\
... blah blah blah
... oops oops oops
... """)
'blah blah blah oops oops oops\n'
What do you get?
-Barry
More information about the Mailman-Developers
mailing list