summaryrefslogtreecommitdiff
path: root/_test/test_literal.py
diff options
context:
space:
mode:
Diffstat (limited to '_test/test_literal.py')
-rw-r--r--_test/test_literal.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/_test/test_literal.py b/_test/test_literal.py
index 698ece5..a9b34e1 100644
--- a/_test/test_literal.py
+++ b/_test/test_literal.py
@@ -217,6 +217,18 @@ class TestNoIndent:
print(type(d), repr(d))
yaml.round_trip(inp)
+ def test_nested_literal_doc_indent_marker(self):
+ yaml = YAML()
+ yaml.explicit_start = True
+ inp = """
+ ---
+ a: |2
+ some more
+ text
+ """
+ d = yaml.load(inp)
+ print(type(d), repr(d))
+ yaml.round_trip(inp)
class Test_RoundTripLiteral:
def test_rt_root_literal_scalar_no_indent(self):