mirror of
https://github.com/httpie/cli.git
synced 2025-01-22 03:08:59 +02:00
Change default XML indent to 2 spaces
This commit is contained in:
parent
d10e108b5f
commit
6c501d23c3
@ -1566,8 +1566,8 @@ You can further control the applied formatting via the more granular `format opt
|
|||||||
Format options
|
Format options
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
The ``--format-options`` option allows you to control how the output should be formatted when formatting is applied.
|
The ``--format-options=opt1:value,opt2:value`` option allows you to control how the output should be formatted
|
||||||
The following options are available:
|
when formatting is applied. The following options are available:
|
||||||
|
|
||||||
+-------------------------------+---------------+------------------------------+
|
+-------------------------------+---------------+------------------------------+
|
||||||
| Option | Default value | Shortcuts |
|
| Option | Default value | Shortcuts |
|
||||||
@ -1582,7 +1582,7 @@ The following options are available:
|
|||||||
+--------------------+----------+---------------+------------------------------+
|
+--------------------+----------+---------------+------------------------------+
|
||||||
| ``xml.format`` | ``true`` | N/A |
|
| ``xml.format`` | ``true`` | N/A |
|
||||||
+-------------------------------+---------------+------------------------------+
|
+-------------------------------+---------------+------------------------------+
|
||||||
| ``xml.indent`` | ``4`` | N/A |
|
| ``xml.indent`` | ``2`` | N/A |
|
||||||
+--------------------+----------+---------------+------------------------------+
|
+--------------------+----------+---------------+------------------------------+
|
||||||
|
|
||||||
For example, this is how you would disable the default header and JSON key
|
For example, this is how you would disable the default header and JSON key
|
||||||
|
@ -91,7 +91,7 @@ DEFAULT_FORMAT_OPTIONS = [
|
|||||||
'json.indent:4',
|
'json.indent:4',
|
||||||
'json.sort_keys:true',
|
'json.sort_keys:true',
|
||||||
'xml.format:true',
|
'xml.format:true',
|
||||||
'xml.indent:4',
|
'xml.indent:2',
|
||||||
]
|
]
|
||||||
SORTED_FORMAT_OPTIONS = [
|
SORTED_FORMAT_OPTIONS = [
|
||||||
'headers.sort:true',
|
'headers.sort:true',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user