Fix typo in xml.dom.minidom documentation (GH-10956)

Escape the \t and \n.
Follow up from https://github.com/python/cpython/pull/10814.
This commit is contained in:
E Kawashima 2018-12-06 07:15:42 +09:00 committed by Miss Islington (bot)
parent ea0ca218b0
commit 2d8f976cde
1 changed files with 1 additions and 1 deletions

View 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