Skip to content

Commit 982720c

Browse files
Merge pull request #1 from ZeroIntensity/moved
Update email.message.rst
2 parents 748c958 + 24b245a commit 982720c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
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

Doc/library/email.message.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -612,13 +612,6 @@ message objects.
612612
*content_manager* is not specified, use the ``content_manager`` specified
613613
by the current :mod:`~email.policy`.
614614

615-
Note that this method will append a newline character to the end of the
616-
content, if it wasn't passed already. For example, the following are equivalent ::
617-
618-
msg = EmailMessage()
619-
msg.set_content("hello")
620-
msg.set_content("hello\n")
621-
622615

623616
.. method:: make_related(boundary=None)
624617

0 commit comments

Comments
 (0)