summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libtextwrap.tex
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2003-05-08 02:12:35 (GMT)
committerGreg Ward <gward@python.net>2003-05-08 02:12:35 (GMT)
commit86e1790cad8bb85faad5e91e1a46dc7c6373d20a (patch)
tree42b226f6200945ea50ba38611aa950d7500a9b88 /Doc/lib/libtextwrap.tex
parent8f6329c54768de2f00cb567dbcd9302d0a9f0f6e (diff)
downloadcpython-86e1790cad8bb85faad5e91e1a46dc7c6373d20a.zip
cpython-86e1790cad8bb85faad5e91e1a46dc7c6373d20a.tar.gz
cpython-86e1790cad8bb85faad5e91e1a46dc7c6373d20a.tar.bz2
Clarify the dedent() example a bit by indenting the input lines unevenly.
Diffstat (limited to 'Doc/lib/libtextwrap.tex')
-rw-r--r--Doc/lib/libtextwrap.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/lib/libtextwrap.tex b/Doc/lib/libtextwrap.tex
index fa0b1fc..778b570 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}