Add support for CRLF in textwrap.dedent

There are many string APIs in Python that use newlines and nearly all of them use only \n. (There may be some exceptions in the email and/or http modules). Let’s not make ad hoc exceptions.

If your editor (or other tool) preserves \r\n copied from Windows files on UNIX you should deal with it there, not by requesting Python to change.

1 Like