mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
#15980: properly escape newlines in docstrings. Patch by Serhiy Storchaka.
This commit is contained in:
parent
3d2fc15f82
commit
003014bf1e
4 changed files with 6 additions and 6 deletions
|
@ -130,7 +130,7 @@ def encode(s, binary=True, maxlinelen=76, eol=NL):
|
|||
verbatim (this is the default).
|
||||
|
||||
Each line of encoded text will end with eol, which defaults to "\\n". Set
|
||||
this to "\r\n" if you will be using the result of this function directly
|
||||
this to "\\r\\n" if you will be using the result of this function directly
|
||||
in an email.
|
||||
"""
|
||||
if not s:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue