]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Simplify markup.
authorGeorg Brandl <georg@python.org>
Mon, 13 Apr 2009 12:36:18 +0000 (12:36 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 13 Apr 2009 12:36:18 +0000 (12:36 +0000)
Doc/reference/compound_stmts.rst

index 408298d031c2847dccdf8ce858d70b052246ec5b..4d7addbbd2baa99b4a149ec0c70981b395eb0321 100644 (file)
@@ -1,4 +1,3 @@
-
 .. _compound:
 
 *******************
@@ -195,12 +194,10 @@ effect of Pascal's ``for i := a to b do``; e.g., ``range(3)`` returns the list
    inserts an item in the sequence before the current item, the current item will
    be treated again the next time through the loop. This can lead to nasty bugs
    that can be avoided by making a temporary copy using a slice of the whole
-   sequence, e.g.,
-
-::
+   sequence, e.g., ::
 
-   for x in a[:]:
-       if x < 0: a.remove(x)
+      for x in a[:]:
+          if x < 0: a.remove(x)
 
 
 .. _try: