mirror of
https://github.com/httpie/cli.git
synced 2024-11-08 00:44:45 +01: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
|
||||
--------------
|
||||
|
||||
The ``--format-options`` option allows you to control how the output should be formatted when formatting is applied.
|
||||
The following options are available:
|
||||
The ``--format-options=opt1:value,opt2:value`` option allows you to control how the output should be formatted
|
||||
when formatting is applied. The following options are available:
|
||||
|
||||
+-------------------------------+---------------+------------------------------+
|
||||
| Option | Default value | Shortcuts |
|
||||
@ -1582,7 +1582,7 @@ The following options are available:
|
||||
+--------------------+----------+---------------+------------------------------+
|
||||
| ``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
|
||||
|
@ -91,7 +91,7 @@ DEFAULT_FORMAT_OPTIONS = [
|
||||
'json.indent:4',
|
||||
'json.sort_keys:true',
|
||||
'xml.format:true',
|
||||
'xml.indent:4',
|
||||
'xml.indent:2',
|
||||
]
|
||||
SORTED_FORMAT_OPTIONS = [
|
||||
'headers.sort:true',
|
||||
|
Loading…
Reference in New Issue
Block a user