Skip to content

Commit 24b245a

Browse files
Update email.contentmanager.rst
1 parent 735ed1d commit 24b245a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/library/email.contentmanager.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,13 @@ Currently the email package provides only one concrete content manager,
191191
(distinguished from strings by having a ``name`` attribute), add the
192192
headers to *msg*.
193193

194+
Note that this method will append a newline character to the end of strings,
195+
if it wasn't passed already. For example, the following are equivalent ::
196+
197+
msg = EmailMessage()
198+
msg.set_content("hello")
199+
msg.set_content("hello\n")
200+
194201

195202
.. rubric:: Footnotes
196203

0 commit comments

Comments
 (0)