aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--Doc/lib/libtextwrap.tex8
-rw-r--r--Lib/textwrap.py8
2 files changed, 8 insertions, 8 deletions
diff --git a/Doc/lib/libtextwrap.tex b/Doc/lib/libtextwrap.tex
index fa0b1fcb2d9..778b57081ce 100644
--- a/Doc/lib/libtextwrap.tex
+++ b/Doc/lib/libtextwrap.tex
@@ -59,11 +59,11 @@ For example:
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'
\end{verbatim}
\end{funcdesc}
diff --git a/Lib/textwrap.py b/Lib/textwrap.py
index 754b037323e..f878e52d19b 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