diff --git a/httpie/output/formatters/xml.py b/httpie/output/formatters/xml.py index be2cd248..e5ce5c23 100644 --- a/httpie/output/formatters/xml.py +++ b/httpie/output/formatters/xml.py @@ -16,7 +16,7 @@ def parse_xml(data: str) -> 'Document': def pretty_xml(document: 'Document', encoding: Optional[str] = UTF8, - indent: int = 4, + indent: int = 2, standalone: Optional[bool] = None) -> str: """Render the given :class:`~xml.dom.minidom.Document` `document` into a prettified string.""" kwargs = { diff --git a/tests/fixtures/xmldata/valid/dtd_formatted.xml b/tests/fixtures/xmldata/valid/dtd_formatted.xml index c196becb..372c93b8 100644 --- a/tests/fixtures/xmldata/valid/dtd_formatted.xml +++ b/tests/fixtures/xmldata/valid/dtd_formatted.xml @@ -3,6 +3,6 @@ PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> -
text + text diff --git a/tests/fixtures/xmldata/valid/simple-ns_formatted.xml b/tests/fixtures/xmldata/valid/simple-ns_formatted.xml index 607f2c74..8273afca 100644 --- a/tests/fixtures/xmldata/valid/simple-ns_formatted.xml +++ b/tests/fixtures/xmldata/valid/simple-ns_formatted.xml @@ -2,8 +2,8 @@
- This is an example of an
- XHTML
- 1.0 Strict document.
-
-
-
-