Skip to content

Commit

Permalink
Reworded some explanations to make them more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Dec 16, 2014
1 parent caaa272 commit ce6e3eb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/yaml/yaml_format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ must be doubled to escape it:
'A single quote '' inside a single-quoted string'
If the string contains any of the following characters, it must be escaped with
single quotes:
Strings containing any of the following characters must be quoted. Although you
can use double quotes, for these characters is more convenient to use single
quotes, which avoids having to escape any backslash ``\``:

* ``:``
* ``{``
Expand All @@ -69,16 +70,15 @@ single quotes:
* ``\```

The double-quoted style provides a way to express arbitrary strings, by
using ``\`` escape sequences. It is very useful when you need to embed a
``\n`` or a Unicode character in a string.
using ``\`` to escape characters and sequences. For instance, it is very useful
when you need to embed a ``\n`` or a Unicode character in a string.

.. code-block:: yaml
"A double-quoted string in YAML\n"
If the string contains any of the following control characters, it must be
escaped with double quotes. In addition, the escaping must use a double slash
``\\`` to avoid parsing issues:
escaped with double quotes:

* ``\0``
* ``\x01``
Expand Down

0 comments on commit ce6e3eb

Please sign in to comment.