Mention XML when explaining formatting

This commit is contained in:
Jakub Roztocil 2021-09-23 12:27:03 +02:00 committed by GitHub
parent cae83b3f9e
commit 1535d0c976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1191,12 +1191,6 @@ There are dozens of styles available, here are just a few notable ones:
| `fruity` | A bold, colorful scheme. Enable with `--style=fruity` |
| … | See `$ http --help` for all the possible `--style` values |
Also, the following formatting is applied:
- HTTP headers are sorted by name.
- JSON data is indented, sorted by keys, and unicode escapes are converted
to the characters they represent.
Use one of these options to control output processing:
| Option | Description |
@ -1206,6 +1200,14 @@ Use one of these options to control output processing:
| `--pretty=format` | Apply formatting |
| `--pretty=none` | Disables output processing. Default for redirected output |
Formatting has the following effects:
- HTTP headers are sorted by name.
- JSON data is indented, sorted by keys, and unicode escapes are converted
to the characters they represent.
- XML and XHTML data is indented.
You can further control the applied formatting via the more granular [format options](#format-options).
### Format options