diff options
author | Mariatta <Mariatta@users.noreply.github.com> | 2018-12-05 15:53:21 -0800 |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-12-05 15:53:21 -0800 |
commit | f7fe18a9254cb1a868801968f315467547d33996 (patch) | |
tree | ac72360fe35ac5dc4a8c5af1958c8337a217b5c6 /Doc | |
parent | bpo-35363: test_eintr runs eintr_tester.py in verbose mode (GH-10965) (diff) | |
download | cpython-f7fe18a9254cb1a868801968f315467547d33996.tar.gz cpython-f7fe18a9254cb1a868801968f315467547d33996.tar.bz2 cpython-f7fe18a9254cb1a868801968f315467547d33996.zip |
[3.6] Fix typo in xml.dom.minidom documentation (GH-10956) (GH-10962)
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>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/xml.dom.minidom.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/xml.dom.minidom.rst b/Doc/library/xml.dom.minidom.rst index d5d7b20efe6..15b1cb0cbf7 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 |