diff options
Diffstat (limited to 'Lib/textwrap.py')
-rw-r--r-- | Lib/textwrap.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/textwrap.py b/Lib/textwrap.py index 754b037..f878e52 100644 --- a/Lib/textwrap.py +++ b/Lib/textwrap.py @@ -325,11 +325,11 @@ def dedent(text): def test(): # end first line with \ to avoid the empty line! s = '''\ - Hey - there + hello + world ''' - print repr(s) # prints ' Hey\n there\n ' - print repr(dedent(s)) # prints 'Hey\nthere\n' + print repr(s) # prints ' hello\n world\n ' + print repr(dedent(s)) # prints 'hello\n world\n' """ lines = text.expandtabs().split('\n') margin = None |