]> granicus.if.org Git - jq/commitdiff
Fix if-then-else example formatting
authorNicolas Williams <nico@cryptonector.com>
Thu, 21 Feb 2019 01:54:06 +0000 (19:54 -0600)
committerNico Williams <nico@cryptonector.com>
Thu, 21 Feb 2019 02:03:26 +0000 (20:03 -0600)
docs/content/3.manual/manual.yml

index 011218f8a298c51feb0482f8e218560bfb39b3bb..150565b45b1cb056ba53f071e225cf6891439d59 100644 (file)
@@ -2062,14 +2062,13 @@ sections:
           More cases can be added to an if using `elif A then B` syntax.
 
         examples:
-          - program: |-
-              if . == 0 then
+          - program: 'if . == 0 then
                 "zero"
               elif . == 1 then
                 "one"
               else
                 "many"
-              end
+              end'
             input: 2
             output: ['"many"']