]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in xml.dom.minidom documentation (GH-10956)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 5 Dec 2018 22:31:11 +0000 (14:31 -0800)
committerGitHub <noreply@github.com>
Wed, 5 Dec 2018 22:31:11 +0000 (14:31 -0800)
Escape the \t and \n.
Follow up from https://github.com/python/cpython/pull/10814.
(cherry picked from commit 2d8f976cde4794d174b44ff7d5fd970aa89c65e8)

Co-authored-by: E Kawashima <e-kwsm@users.noreply.github.com>
Doc/library/xml.dom.minidom.rst

index 2f4022428db0d316a04b437d82c91b1107d5d796..2df5bdd5cf3b9e29aafe9e125d18b3606fc6679c 100644 (file)
@@ -169,7 +169,7 @@ module documentation.  This section lists the differences between the API and
       the *encoding* argument was introduced; see :meth:`writexml`.
 
 
-.. 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