From: Andrew Svetlov <andrew.svetlov@gmail.com>
Date: Thu, 8 Nov 2012 15:29:02 +0000 (+0200)
Subject: Issue #16439: Fix markup in example for stdtypes.
X-Git-Tag: v2.7.5~109^2~142
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3eb0e1da80727a124507232355d23384c9a496a1;p=python

Issue #16439: Fix markup in example for stdtypes.

Thanks to Yongzhi Pan.
---

diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index f00c4fb4f5..e42791fe27 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1253,11 +1253,11 @@ string functions based on regular expressions.
 
         >>> import re
         >>> def titlecase(s):
-                return re.sub(r"[A-Za-z]+('[A-Za-z]+)?",
-                              lambda mo: mo.group(0)[0].upper() +
-                                         mo.group(0)[1:].lower(),
-                              s)
-
+        ...     return re.sub(r"[A-Za-z]+('[A-Za-z]+)?",
+        ...                   lambda mo: mo.group(0)[0].upper() +
+        ...                              mo.group(0)[1:].lower(),
+        ...                   s)
+        ...
         >>> titlecase("they're bill's friends.")
         "They're Bill's Friends."