From 019440bc55b6925724f1d091aece34df9ce79a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller=20=28tinita=29?= Date: Mon, 13 Jan 2020 12:06:34 +0100 Subject: [PATCH] Open ended documents need document end marker (#49) ...like block scalars with the `|+` indicator for keeping trailing empty lines --- test/F8F9.tml | 4 +++- test/K858.tml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/F8F9.tml b/test/F8F9.tml index ef5d1183..5a8b97ab 100644 --- a/test/F8F9.tml +++ b/test/F8F9.tml @@ -30,7 +30,7 @@ keep: |+ "keep": "# text\n\n" } ---- out-yaml(+) +--- out-yaml strip: |- # text clip: | @@ -38,6 +38,8 @@ clip: | keep: |+ # text +... + --- test-event +STR +DOC diff --git a/test/K858.tml b/test/K858.tml index 74b5e532..2feaf8b0 100644 --- a/test/K858.tml +++ b/test/K858.tml @@ -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