]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-110631: Fix wrong blocks indentation in difflib.rst (GH-110885)
authorEzio Melotti <ezio.melotti@gmail.com>
Fri, 5 Jun 2026 17:02:10 +0000 (01:02 +0800)
committerGitHub <noreply@github.com>
Fri, 5 Jun 2026 17:02:10 +0000 (17:02 +0000)
Doc/library/difflib.rst

index 8b812c173b595368a8d87392fb90c003958247c8..25edb40e35a630a1e3d866320190f149e2392f19 100644 (file)
@@ -724,7 +724,7 @@ Finally, we compare the two:
 
    >>> result = list(d.compare(text1, text2))
 
-``result`` is a list of strings, so let's pretty-print it:
+``result`` is a list of strings, so let's pretty-print it::
 
    >>> from pprint import pprint
    >>> pprint(result)
@@ -739,7 +739,7 @@ Finally, we compare the two:
     '?           ++++ ^                      ^\n',
     '+   5. Flat is better than nested.\n']
 
-As a single multi-line string it looks like this:
+As a single multi-line string it looks like this::
 
    >>> import sys
    >>> sys.stdout.writelines(result)