From eb97b9211e7c99841d6cae8c63893b3525d5a401 Mon Sep 17 00:00:00 2001 From: tmblweed Date: Sat, 29 Jun 2019 21:20:03 -0700 Subject: bpo-30754: Document textwrap.dedent blank line behavior. (GH-14469) * Added documentation for textwrap.dedent behavior. * Remove an obsolete note about pre-2.5 behavior from the docstring. --- Doc/library/textwrap.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Doc') diff --git a/Doc/library/textwrap.rst b/Doc/library/textwrap.rst index d254466c9a..0f11ef4015 100644 --- a/Doc/library/textwrap.rst +++ b/Doc/library/textwrap.rst @@ -77,6 +77,9 @@ functions should be good enough; otherwise, you should use an instance of equal: the lines ``" hello"`` and ``"\thello"`` are considered to have no common leading whitespace. + Lines containing only whitespace are ignored in the input and normalized to a + single newline character in the output. + For example:: def test(): -- cgit v1.2.1