Skip to content

Commit

Permalink
Open ended documents need document end marker
Browse files Browse the repository at this point in the history
...like block scalars with the `|+` indicator for keeping trailing
empty lines
  • Loading branch information
perlpunk committed Jan 13, 2020
1 parent ac6d0e4 commit 55e8221
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/F8F9.tml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ keep: |+
"keep": "# text\n\n"
}

--- out-yaml(+)
--- out-yaml
strip: |-
# text
clip: |
# text
keep: |+
# text

...

--- test-event
+STR
+DOC
Expand Down
4 changes: 3 additions & 1 deletion test/K858.tml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ keep: |+
"keep": "\n"
}

--- out-yaml(+)
--- out-yaml
# XXX empty string should emit as ''
strip: ""
clip: ""
# XXX why is libyaml emitting 2 (or literal at all)
keep: |2+

...

--- test-event
+STR
+DOC
Expand Down

0 comments on commit 55e8221

Please sign in to comment.