From 735ed1d0d27753d6af67c272a10555bb58b6a73e Mon Sep 17 00:00:00 2001 From: Peter Bierma Date: Wed, 10 Jul 2024 08:13:19 -0400 Subject: [PATCH 1/2] Update email.message.rst --- Doc/library/email.message.rst | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Doc/library/email.message.rst b/Doc/library/email.message.rst index 926bde0d38cc4d..e9cce1af186526 100644 --- a/Doc/library/email.message.rst +++ b/Doc/library/email.message.rst @@ -612,13 +612,6 @@ message objects. *content_manager* is not specified, use the ``content_manager`` specified by the current :mod:`~email.policy`. - Note that this method will append a newline character to the end of the - content, if it wasn't passed already. For example, the following are equivalent :: - - msg = EmailMessage() - msg.set_content("hello") - msg.set_content("hello\n") - .. method:: make_related(boundary=None) From 24b245a86272549e5c7c0f452f01e594415034eb Mon Sep 17 00:00:00 2001 From: Peter Bierma Date: Wed, 10 Jul 2024 08:17:42 -0400 Subject: [PATCH 2/2] Update email.contentmanager.rst --- Doc/library/email.contentmanager.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/library/email.contentmanager.rst b/Doc/library/email.contentmanager.rst index 34121f8c0a7727..bf917c84cdabf5 100644 --- a/Doc/library/email.contentmanager.rst +++ b/Doc/library/email.contentmanager.rst @@ -191,6 +191,13 @@ Currently the email package provides only one concrete content manager, (distinguished from strings by having a ``name`` attribute), add the headers to *msg*. + Note that this method will append a newline character to the end of strings, + if it wasn't passed already. For example, the following are equivalent :: + + msg = EmailMessage() + msg.set_content("hello") + msg.set_content("hello\n") + .. rubric:: Footnotes