summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-12-05 14:31:11 -0800
committerGitHub <noreply@github.com>2018-12-05 14:31:11 -0800
commit40ef5b73c240ad0a73b734919b9e4f7062ae5b1f (patch)
tree932eefe4157853f3f3275bd5a5073726d5817f03
parentfff8fab1ce4af208cd9c6cd84a8be626a1b744d8 (diff)
downloadcpython-git-40ef5b73c240ad0a73b734919b9e4f7062ae5b1f.tar.gz
Fix typo in xml.dom.minidom documentation (GH-10956)
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>
-rw-r--r--Doc/library/xml.dom.minidom.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/xml.dom.minidom.rst b/Doc/library/xml.dom.minidom.rst
index 2f4022428d..2df5bdd5cf 100644
--- a/Doc/library/xml.dom.minidom.rst
+++ b/Doc/library/xml.dom.minidom.rst
@@ -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