From 2d8f976cde4794d174b44ff7d5fd970aa89c65e8 Mon Sep 17 00:00:00 2001 From: E Kawashima Date: Thu, 6 Dec 2018 07:15:42 +0900 Subject: [PATCH] Fix typo in xml.dom.minidom documentation (GH-10956) Escape the \t and \n. Follow up from https://github.com/python/cpython/pull/10814. --- Doc/library/xml.dom.minidom.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/xml.dom.minidom.rst b/Doc/library/xml.dom.minidom.rst index 42340802f193..fb6fe6e66143 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