Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 24b245a

Browse filesBrowse files
Update email.contentmanager.rst
1 parent 735ed1d commit 24b245a
Copy full SHA for 24b245a

File tree

Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed

‎Doc/library/email.contentmanager.rst

Copy file name to clipboardExpand all lines: Doc/library/email.contentmanager.rst
+7Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.