-
Hi hi hello hi! I'm considering using KDL in one of my projects as an alternative to YAML for a document-based syntax. One thing that I'm missing is seamless multiline string support. For example, in YAML, one can use the pipe-string syntax: some:
deeply:
nested:
value: |
I am a string
that includes multiple lines
and is dedented in the parsed output I'm wondering if there are any plans for a similar syntax in KDL. For context, I'm hoping to be able to embed markdown text relatively easily. I see the EDIT: I understand if this isn't a design goal of KDL, but I haven't seen it discussed (hence this discussion). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi! All strings in KDL are multiline so you don't need r# just for that. Just add newlines! Unfortunately, we don't support dedenting, pretty intentionally. It's one of those things that looks good at first but when you actually hit the sharp edges, it can hurt a lot, especially in a language like KDL that isn't indentation-sensitive. Does that make sense? |
Beta Was this translation helpful? Give feedback.
Hi!
All strings in KDL are multiline so you don't need r# just for that. Just add newlines! Unfortunately, we don't support dedenting, pretty intentionally. It's one of those things that looks good at first but when you actually hit the sharp edges, it can hurt a lot, especially in a language like KDL that isn't indentation-sensitive.
Does that make sense?