From: Georg Brandl Date: Wed, 18 Nov 2009 20:05:15 +0000 (+0000) Subject: Fix markup. X-Git-Tag: v2.7a1~84 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1136ff541e37eed6e5b06465de48e60cc0234b36;p=thirdparty%2FPython%2Fcpython.git Fix markup. --- diff --git a/Doc/library/string.rst b/Doc/library/string.rst index d01ddf1edf8e..b636ca011680 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -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: