Skip to content
Myr

docs: --indent value has maximum of 7, not 8

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Test Plan: To verify that this is in fact the behavior: ``` $ jq --indent 7 -n '[1]' [ 1 ] $ jq --indent 8 -n '[1]' jq: --indent takes a number between -1 and 7 Use jq --help for help with command-line options, or see the jq manpage, or online docs at https://stedolan.github.io/jq ``` This patch was generated by running `git grep "no more than"` and fixing up appropriate results.

authored by William Chargin · committed by Nico Williams · parent e7d3798 · Browse files · 4 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • wchargin-branch: docs-fix-indent-bounds

Diff stats

4 files+4 added−4 removed

  • other:+4 added−4 removed

4 files+4 added−4 removed

modified:docs/content/manual/v1.5/manual.yml+1 added-1 removed
150 unmodified lines
151 Use a tab for each indentation level instead of two spaces.152153 * `--indent n`:154155 Use the given number of spaces (no more than 8) for indentation.155 Use the given number of spaces (no more than 7) for indentation.156157 * `--color-output` / `-C` and `--monochrome-output` / `-M`:158159 By default, jq outputs colored JSON if writing to a
2719 unmodified lines
modified:docs/content/manual/v1.6/manual.yml+1 added-1 removed
150 unmodified lines
151 Use a tab for each indentation level instead of two spaces.152153 * `--indent n`:154155 Use the given number of spaces (no more than 8) for indentation.155 Use the given number of spaces (no more than 7) for indentation.156157 * `--color-output` / `-C` and `--monochrome-output` / `-M`:158159 By default, jq outputs colored JSON if writing to a
3177 unmodified lines
modified:docs/content/manual/manual.yml+1 added-1 removed
151 unmodified lines
152 Use a tab for each indentation level instead of two spaces.153154 * `--indent n`:155156 Use the given number of spaces (no more than 8) for indentation.156 Use the given number of spaces (no more than 7) for indentation.157158 * `--color-output` / `-C` and `--monochrome-output` / `-M`:159160 By default, jq outputs colored JSON if writing to a
3156 unmodified lines
modified:jq.1.prebuilt+1 added-1 removed
95 unmodified lines
96.IP "\(bu" 497\fB\-\-indent n\fR:98.99.IP100Use the given number of spaces (no more than 8) for indentation\.100Use the given number of spaces (no more than 7) for indentation\.101.102.IP "\(bu" 4103\fB\-\-color\-output\fR / \fB\-C\fR and \fB\-\-monochrome\-output\fR / \fB\-M\fR:104.
3355 unmodified lines