summaryrefslogtreecommitdiff
path: root/scalarstring.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-08-05 12:27:52 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-08-05 12:27:52 +0200
commit06ea5a9886a6abb88b7a81481c6600477088f2c6 (patch)
treec8f72ab953eab349348714b2f5b65ce5356622d6 /scalarstring.py
parent9b15f5f59e52ce2257a579900d8315cd7d46e4c9 (diff)
downloadruamel.yaml-06ea5a9886a6abb88b7a81481c6600477088f2c6.tar.gz
leading empty lines and comments on root level literal scalars not preserved0.15.49
added test, fixed both now you can have --- !some_tag | # with a comment this is a multi- line literal scalar
Diffstat (limited to 'scalarstring.py')
-rw-r--r--scalarstring.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scalarstring.py b/scalarstring.py
index 4b1a317..ef283d2 100644
--- a/scalarstring.py
+++ b/scalarstring.py
@@ -28,7 +28,7 @@ class ScalarString(text_type):
class PreservedScalarString(ScalarString):
- __slots__ = ()
+ __slots__ = ('comment') # the comment after the | on the first line
style = '|'