]> granicus.if.org Git - python/commitdiff
Fix typo in xml.dom.minidom documentation (GH-10956)
authorE Kawashima <e-kwsm@users.noreply.github.com>
Wed, 5 Dec 2018 22:15:42 +0000 (07:15 +0900)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 5 Dec 2018 22:15:42 +0000 (14:15 -0800)
Escape the \t and \n.
Follow up from https://github.com/python/cpython/pull/10814.

Doc/library/xml.dom.minidom.rst

index 42340802f1938b3a1abc3923d7c9689a9be180a5..fb6fe6e6614386f5179d74b7655517334ac04e75 100644 (file)
@@ -163,7 +163,7 @@ module documentation.  This section lists the differences between the API and
       The :meth:`toxml` method now preserves the attribute order specified
       by the user.
 
-.. method:: Node.toprettyxml(indent="\t", newl="\n", encoding=None)
+.. method:: Node.toprettyxml(indent="\\t", newl="\\n", encoding=None)
 
    Return a pretty-printed version of the document. *indent* specifies the
    indentation string and defaults to a tabulator; *newl* specifies the string