@@ -94,9 +94,17 @@ where each line break is replaced by a space:
9494
9595 >
9696 This is a very long sentence
97- that spans several lines in the YAML
98- but which will be rendered as a string
99- without carriage returns.
97+ that spans several lines in the YAML.
98+
99+ # This will be parsed as follows: (notice the trailing \n)
100+ # "This is a very long sentence that spans several lines in the YAML.\n"
101+
102+ >-
103+ This is a very long sentence
104+ that spans several lines in the YAML.
105+
106+ # This will be parsed as follows: (without a trailing \n)
107+ # "This is a very long sentence that spans several lines in the YAML."
100108
101109 .. note ::
102110
@@ -318,8 +326,8 @@ The following YAML features are not supported by the Symfony Yaml component:
318326* Multi-documents (``--- `` and ``... `` markers);
319327* Complex mapping keys and complex values starting with ``? ``;
320328* Tagged values as keys;
321- * The following tags and types: `!!set `, `!!omap `, `!!pairs `, `!!seq `,
322- `!!bool `, `!!int `, `!!merge `, `!!null `, `!!timestamp `, `!!value `, `!!yaml `;
329+ * The following tags and types: `` !!set `` , `` !!omap `` , `` !!pairs `` , `` !!seq ` `,
330+ `` !!bool `` , `` !!int `` , `` !!merge `` , `` !!null `` , `` !!timestamp `` , `` !!value `` , `` !!yaml ` `;
323331* Tags (``TAG `` directive; example: ``%TAG ! tag:example.com,2000:app/ ``)
324332 and tag references (example: ``!<tag:example.com,2000:app/foo> ``);
325333* Using sequence-like syntax for mapping elements (example: ``{foo, bar} ``; use
0 commit comments