]> granicus.if.org Git - jq/commitdiff
Fix manual.yml
authorNicolas Williams <nico@cryptonector.com>
Fri, 6 Dec 2013 17:58:55 +0000 (11:58 -0600)
committerNicolas Williams <nico@cryptonector.com>
Fri, 6 Dec 2013 17:58:55 +0000 (11:58 -0600)
docs/content/3.manual/manual.yml

index d114d31eab7f7f01765e6f2d62f7ee4a02f4e850..fc98e9ed665468868de78ccc6495567f9b775fd0 100644 (file)
@@ -836,7 +836,7 @@ sections:
       - title: `startswith`
         body: |
 
-          Outputs true if . starts with the given string argument.
+          Outputs `true` if . starts with the given string argument.
 
         examples:
           - program: '[.[]|startswith("foo")]'
@@ -846,7 +846,7 @@ sections:
       - title: `endswith`
         body: |
 
-          Outputs true if . ends with the given string argument.
+          Outputs `true` if . ends with the given string argument.
 
         examples:
           - program: '[.[]|endswith("foo")]'
@@ -861,7 +861,7 @@ sections:
 
         examples:
           - program: '[.[]|ltrimstr("foo")]'
-            input: ["fo", "foo", "barfoo", "foobar", "afoo"]
+            input: '["fo", "foo", "barfoo", "foobar", "afoo"]'
             output: ['["fo","","barfoo","bar","afoo"]']
 
       - title: `rtrimstr`
@@ -872,7 +872,7 @@ sections:
 
         examples:
           - program: '[.[]|rtrimstr("foo")]'
-            input: ["fo", "foo", "barfoo", "foobar", "foob"]
+            input: '["fo", "foo", "barfoo", "foobar", "foob"]'
             output: ['["fo","","bar","foobar","foob"]']
 
       - title: `explode`
@@ -951,6 +951,7 @@ sections:
             output: ['"The input was 42, which is one less than 43"']
           
       - title: "Convert to/from JSON"
+        body: |
 
           The `tojson` and `fromjson` builtins dump values as JSON texts
           or parse JSON texts into values, respectively.  The tojson
@@ -960,13 +961,13 @@ sections:
         examples:
           - program: '[.[]|tostring]'
             input: '[1, "foo", ["foo"]]'
-            output: '["1","foo","[\"foo\"]"]'
+            output: ['["1","foo","[\"foo\"]"]']
           - program: '[.[]|tojson]'
             input: '[1, "foo", ["foo"]]'
-            output: '["1","\"foo\"","[\"foo\"]"]'
+            output: ['["1","\"foo\"","[\"foo\"]"]']
           - program: '[.[]|tojson|fromjson]'
             input: '[1, "foo", ["foo"]]'
-            output: '[1,"foo",["foo"]]'
+            output: ['[1,"foo",["foo"]]']
 
       - title: "Format strings and escaping"
         body: |