mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
gh-117313: Fix re-folding email messages containing non-standard line separators (GH-117369)
Only treat '\n', '\r' and '\r\n' as line separators in re-folding the email messages. Preserve control characters '\v', '\f', '\x1c', '\x1d' and '\x1e' and Unicode line separators '\x85', '\u2028' and '\u2029' as is.
This commit is contained in:
parent
4e502a4997
commit
aec1dac4ef
3 changed files with 56 additions and 2 deletions
|
|
@ -0,0 +1,4 @@
|
|||
Only treat ``'\n'``, ``'\r'`` and ``'\r\n'`` as line separators in
|
||||
re-folding the :mod:`email` messages. Preserve control characters ``'\v'``,
|
||||
``'\f'``, ``'\x1c'``, ``'\x1d'`` and ``'\x1e'`` and Unicode line separators
|
||||
``'\x85'``, ``'\u2028'`` and ``'\u2029'`` as is.
|
||||
Loading…
Add table
Add a link
Reference in a new issue