]> granicus.if.org Git - python/commitdiff
Fix markup.
authorGeorg Brandl <georg@python.org>
Wed, 18 Nov 2009 20:05:15 +0000 (20:05 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 18 Nov 2009 20:05:15 +0000 (20:05 +0000)
Doc/library/string.rst

index d01ddf1edf8ef2e323a6b2e7907fe5738a0eb9fc..b636ca0116800e998494b25e69a7201e094c9ef9 100644 (file)
@@ -541,13 +541,12 @@ these rules.  The methods of :class:`Template` are:
       templates containing dangling delimiters, unmatched braces, or
       placeholders that are not valid Python identifiers.
 
-:class:`Template` instances also provide one public data attribute:
+   :class:`Template` instances also provide one public data attribute:
 
+   .. attribute:: template
 
-.. attribute:: string.template
-
-   This is the object passed to the constructor's *template* argument.  In general,
-   you shouldn't change it, but read-only access is not enforced.
+      This is the object passed to the constructor's *template* argument.  In
+      general, you shouldn't change it, but read-only access is not enforced.
 
 Here is an example of how to use a Template: