summaryrefslogtreecommitdiffstats
path: root/Doc/library/xml.dom.minidom.rst
diff options
context:
space:
mode:
authorE Kawashima <e-kwsm@users.noreply.github.com>2018-12-05 22:15:42 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-12-05 22:15:42 (GMT)
commit2d8f976cde4794d174b44ff7d5fd970aa89c65e8 (patch)
tree45a8772680009f57b019c2a53f6f219ada5ab2cc /Doc/library/xml.dom.minidom.rst
parentea0ca218b0c28b2af2b1f6a5d3383569de7fc2c1 (diff)
downloadcpython-2d8f976cde4794d174b44ff7d5fd970aa89c65e8.zip
cpython-2d8f976cde4794d174b44ff7d5fd970aa89c65e8.tar.gz
cpython-2d8f976cde4794d174b44ff7d5fd970aa89c65e8.tar.bz2
Fix typo in xml.dom.minidom documentation (GH-10956)
Escape the \t and \n. Follow up from https://github.com/python/cpython/pull/10814.
Diffstat (limited to 'Doc/library/xml.dom.minidom.rst')
-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 4234080..fb6fe6e 100644
--- a/Doc/library/xml.dom.minidom.rst
+++ b/Doc/library/xml.dom.minidom.rst
@@ -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