File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,9 @@ must be doubled to escape it:
45
45
46
46
' A single quote '' inside a single-quoted string'
47
47
48
- If the string contains any of the following characters, it must be escaped with
49
- single quotes:
48
+ Strings containing any of the following characters must be quoted. Although you
49
+ can use double quotes, for these characters is more convenient to use single
50
+ quotes, which avoids having to escape any backslash ``\ ``:
50
51
51
52
* ``: ``
52
53
* ``{ ``
@@ -69,16 +70,15 @@ single quotes:
69
70
* ``\` ``
70
71
71
72
The double-quoted style provides a way to express arbitrary strings, by
72
- using ``\ `` escape sequences. It is very useful when you need to embed a
73
- ``\n `` or a Unicode character in a string.
73
+ using ``\ `` to escape characters and sequences. For instance, it is very useful
74
+ when you need to embed a ``\n `` or a Unicode character in a string.
74
75
75
76
.. code-block :: yaml
76
77
77
78
" A double-quoted string in YAML\n "
78
79
79
80
If the string contains any of the following control characters, it must be
80
- escaped with double quotes. In addition, the escaping must use a double slash
81
- ``\\ `` to avoid parsing issues:
81
+ escaped with double quotes:
82
82
83
83
* ``\0 ``
84
84
* ``\x01 ``
You can’t perform that action at this time.
0 commit comments