0

I'm trying to deserialize a string with new line separators in it. This post suggested using > or |, but when I add these in my yml file I get the following error: While scanning a block scalar, did not find expected comment or line break.

My yml looks something like this:

message: | <html><p>Some text
Some text on a new line</p></html>

Is there support for line breaks in YamlDotNet and if so, where can I find the documentation on how to use it, because I can't find anything on the Github (wiki).

  • i hope this helps your search https://yaml.org/spec/1.2.2/#chapter-8-block-style-productions – Roe Feb 10 '23 at 14:48

0 Answers0