[Python-checkins] [3.7] Fix typo in xml.dom.minidom documentation (GH-10956) (GH-10961)

Miss Islington (bot) webhook-mailer at python.org
Wed Dec 5 19:24:48 EST 2018


https://github.com/python/cpython/commit/c28317e4c2520f6df7a281f1664d63a6447d1ebb
commit: c28317e4c2520f6df7a281f1664d63a6447d1ebb
branch: 3.7
author: Mariatta <Mariatta at users.noreply.github.com>
committer: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
date: 2018年12月05日T16:24:44-08:00
summary:
[3.7] Fix typo in xml.dom.minidom documentation (GH-10956) (GH-10961)
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 at users.noreply.github.com>
files:
M Doc/library/xml.dom.minidom.rst
diff --git a/Doc/library/xml.dom.minidom.rst b/Doc/library/xml.dom.minidom.rst
index d5d7b20efe60..15b1cb0cbf78 100644
--- a/Doc/library/xml.dom.minidom.rst
+++ b/Doc/library/xml.dom.minidom.rst
@@ -156,7 +156,7 @@ module documentation. This section lists the differences between the API and
 encoding. Encoding this string in an encoding other than UTF-8 is
 likely incorrect, since UTF-8 is the default encoding of XML.
 
-.. 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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /