Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1e28daf

Browse files
e-kwsmserhiy-storchaka
authored andcommitted
[3.6] Fix signature of xml.dom.minidom.Document.toprettyxml(). (GH-10814). (GH-10825)
(cherry picked from commit b7c2182)
1 parent c0566e0 commit 1e28daf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/xml.dom.minidom.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ module documentation. This section lists the differences between the API and
156156
encoding. Encoding this string in an encoding other than UTF-8 is
157157
likely incorrect, since UTF-8 is the default encoding of XML.
158158

159-
.. method:: Node.toprettyxml(indent="", newl="", encoding="")
159+
.. method:: Node.toprettyxml(indent="\t", newl="\n", encoding=None)
160160

161161
Return a pretty-printed version of the document. *indent* specifies the
162162
indentation string and defaults to a tabulator; *newl* specifies the string

0 commit comments

Comments
 (0)