@@ -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
@@ -318,8 +326,8 @@ The following YAML features are not supported by the Symfony Yaml component:
318
326
* Multi-documents (``--- `` and ``... `` markers);
319
327
* Complex mapping keys and complex values starting with ``? ``;
320
328
* 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 ` `;
323
331
* Tags (``TAG `` directive; example: ``%TAG ! tag:example.com,2000:app/ ``)
324
332
and tag references (example: ``!<tag:example.com,2000:app/foo> ``);
325
333
* Using sequence-like syntax for mapping elements (example: ``{foo, bar} ``; use
0 commit comments