mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
Fix invalid YAML in manual.yml
Grave accent "`" is a reserved indicator in YAML per http://www.yaml.org/spec/1.2/spec.html#id2774228, so it can't start a plain scalar. This commit applies quoting to titles beginning with grave accents. Signed-off-by: Nicolas Williams <nico@cryptonector.com>
This commit is contained in:
Zhiming Wang
committed by
Nicolas Williams
parent
f68815d5ad
commit
1d620c0de3
@ -1637,7 +1637,7 @@ sections:
|
||||
input: 'true'
|
||||
output: ['"some exception"']
|
||||
|
||||
- title: `?` operator
|
||||
- title: "`?` operator"
|
||||
body: |
|
||||
|
||||
The `?` operator, used as `EXP?`, is shorthand for `try EXP`.
|
||||
@ -1821,7 +1821,7 @@ sections:
|
||||
input: '[10,2,5,3]'
|
||||
output: ['20']
|
||||
|
||||
- title: `limit(n; exp)`
|
||||
- title: "`limit(n; exp)`"
|
||||
body: |
|
||||
|
||||
The `limit` function extracts up to `n` outputs from `exp`.
|
||||
@ -1831,7 +1831,7 @@ sections:
|
||||
input: '[0,1,2,3,4,5,6,7,8,9]'
|
||||
output: ['[0,1,2]']
|
||||
|
||||
- title: `foreach`
|
||||
- title: "`foreach`"
|
||||
body: |
|
||||
|
||||
The `foreach` syntax is similar to `reduce`, but intended to
|
||||
|
Reference in New Issue
Block a user