Change default XML indent to 2 spaces

This commit is contained in:
Jakub Roztocil 2021-08-31 22:52:16 +02:00
parent d10e108b5f
commit 6c501d23c3
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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',