Skip to content

Instantly share code, notes, and snippets.

@mattwildig
Created April 13, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattwildig/f109bdea61e9d8742811 to your computer and use it in GitHub Desktop.
Save mattwildig/f109bdea61e9d8742811 to your computer and use it in GitHub Desktop.

Calling mark at end of scalar of interest produces something like:

{"line1"=>{"value"=>"line2", "line"=>4},
  "line4"=>{"value"=>"line5\nline6\n", "line"=>7}}

Calling mark at end of previous scalar produces something like:

{"line1"=>{"value"=>"line2", "line"=>1},
  "line4"=>{"value"=>"line5\nline6\n", "line"=>4}}
line1:
line2
line4: |
line5
line6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment