diff options
author | Barry Warsaw <barry@python.org> | 2003-03-11 05:04:09 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2003-03-11 05:04:09 (GMT) |
commit | cbec700b499a62125a0dd32ef272295cf49c1b8d (patch) | |
tree | b9e7d8def592f3dd0db443abe632a44bf4480bb1 /Lib/email/MIMEText.py | |
parent | a996d4f1370c6fad193fb87dac0a81833c632400 (diff) | |
download | cpython-cbec700b499a62125a0dd32ef272295cf49c1b8d.zip cpython-cbec700b499a62125a0dd32ef272295cf49c1b8d.tar.gz cpython-cbec700b499a62125a0dd32ef272295cf49c1b8d.tar.bz2 |
__init__(): Don't add a newline to _text if it doesn't already end in
one. Possibly controversial.
Diffstat (limited to 'Lib/email/MIMEText.py')
-rw-r--r-- | Lib/email/MIMEText.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/email/MIMEText.py b/Lib/email/MIMEText.py index d91b93d..d049ad9 100644 --- a/Lib/email/MIMEText.py +++ b/Lib/email/MIMEText.py @@ -17,8 +17,7 @@ class MIMEText(MIMENonMultipart): _encoder=None): """Create a text/* type MIME document. - _text is the string for this message object. If the text does not end - in a newline, one is added. + _text is the string for this message object. _subtype is the MIME sub content type, defaulting to "plain". @@ -35,8 +34,6 @@ class MIMEText(MIMENonMultipart): """ MIMENonMultipart.__init__(self, 'text', _subtype, **{'charset': _charset}) - if _text and not _text.endswith('\n'): - _text += '\n' self.set_payload(_text, _charset) if _encoder is not None: warnings.warn('_encoder argument is obsolete.', |