@@ -94,9 +94,17 @@ where each line break is replaced by a space:
94
94
95
95
>
96
96
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."
100
108
101
109
.. note ::
102
110
@@ -322,8 +330,8 @@ The following YAML features are not supported by the Symfony Yaml component:
322
330
* Multi-documents (``--- `` and ``... `` markers);
323
331
* Complex mapping keys and complex values starting with ``? ``;
324
332
* Tagged values as keys;
325
- * The following tags and types: `!!set `, `!!omap `, `!!pairs `, `!!seq `,
326
- `!!bool `, `!!int `, `!!merge `, `!!null `, `!!timestamp `, `!!value `, `!!yaml `;
333
+ * The following tags and types: `` !!set `` , `` !!omap `` , `` !!pairs `` , `` !!seq ` `,
334
+ `` !!bool `` , `` !!int `` , `` !!merge `` , `` !!null `` , `` !!timestamp `` , `` !!value `` , `` !!yaml ` `;
327
335
* Tags (``TAG `` directive; example: ``%TAG ! tag:example.com,2000:app/ ``)
328
336
and tag references (example: ``!<tag:example.com,2000:app/foo> ``);
329
337
* Using sequence-like syntax for mapping elements (example: ``{foo, bar} ``; use
0 commit comments