emit multi-line string scalars #482
Replies: 1 comment
-
@g-pechorin Maybe we can start with the block literal style which is simpler but with which a long string can still be emitted across multiple lines as follows: --- # single-line, long version
single line: "Assume this is a loooooong string.\nWe might want to emit this line across multiple lines.\nThere are some ways but not yet implemented in fkYAML."
---
multiple lines using block literal style: |-
Assume this is a loooooong string.
We might want to separate this line across multiple lines.
There are some ways but not yet implemented in fkYAML.
Due to its simplicity, there are some downsides:
Is that going to help you? |
Beta Was this translation helpful? Give feedback.
-
IIRC there are ways to emit multi-line strings as "not just a really long string"
is this something that fkYAML can be told to do? I can parse existing documents, but, I want fkYAML to emit my really long strings across multiple lines if possible
Beta Was this translation helpful? Give feedback.
All reactions