]> granicus.if.org Git - python/commitdiff
- Fixed typo in multi-line exception example
authorEdward Loper <edloper@gradient.cis.upenn.edu>
Mon, 27 Sep 2004 03:30:44 +0000 (03:30 +0000)
committerEdward Loper <edloper@gradient.cis.upenn.edu>
Mon, 27 Sep 2004 03:30:44 +0000 (03:30 +0000)
- Fixed indentation for a verbatim block

Doc/lib/libdoctest.tex

index 23818806bc84d2d46600e516f3d3ae8a4372faa6..81a472ce07d76d9a3465450aa5d52b5b8dab7609 100644 (file)
@@ -443,7 +443,7 @@ last line of a traceback, but can extend across multiple lines if the
 exception has a multi-line detail:
 
 \begin{verbatim}
->>> raise ValueError('multi\n   line\ndetail')
+>>> raise ValueError('multi\n    line\ndetail')
 Traceback (most recent call last):
   File "<stdin>", line 1, in ?
 ValueError: multi
@@ -460,7 +460,7 @@ significant documentation value to the example.  So the last example
 is probably better as:
 
 \begin{verbatim}
->>> raise ValueError('multi\n   line\ndetail')
+>>> raise ValueError('multi\n    line\ndetail')
 Traceback (most recent call last):
     ...
 ValueError: multi
@@ -1699,10 +1699,10 @@ the synthesized code under the debugger:
    \function{script_from_examples()} above.  For example, if module
    \file{a.py} contains a top-level function \function{f()}, then
 
-    \begin{verbatim}
-    import a, doctest
-    print doctest.testsource(a, "a.f")
-    \end{verbatim}
+\begin{verbatim}
+import a, doctest
+print doctest.testsource(a, "a.f")
+\end{verbatim}
 
   prints a script version of function \function{f()}'s docstring,
   with doctests converted to code, and the rest placed in comments.