summaryrefslogtreecommitdiff
path: root/12-xml-expressions-and-patterns.md
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2014-03-13 16:53:51 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-03-13 16:53:51 -0700
commitd8a09e207cb207f185cae035247bdcc6d71cbfca (patch)
treec5ff52ba0c28ab23cbcd6a1df286cb819fc1e49e /12-xml-expressions-and-patterns.md
parent9c757bb06a6500df8ebcabfd45a53b2572cca1d6 (diff)
downloadscala-d8a09e207cb207f185cae035247bdcc6d71cbfca.tar.gz
scala-d8a09e207cb207f185cae035247bdcc6d71cbfca.tar.bz2
scala-d8a09e207cb207f185cae035247bdcc6d71cbfca.zip
formatting
Diffstat (limited to '12-xml-expressions-and-patterns.md')
-rw-r--r--12-xml-expressions-and-patterns.md17
1 files changed, 9 insertions, 8 deletions
diff --git a/12-xml-expressions-and-patterns.md b/12-xml-expressions-and-patterns.md
index 03f9b4853b..78bd602d85 100644
--- a/12-xml-expressions-and-patterns.md
+++ b/12-xml-expressions-and-patterns.md
@@ -14,7 +14,7 @@ changes being mandated by the possibility of embedding Scala code fragments.
## XML expressions
XML expressions are expressions generated by the following production, where the
-opening bracket `<' of the first element must be in a position to start the lexical
+opening bracket `<` of the first element must be in a position to start the lexical
[XML mode](#xml-mode).
```
@@ -63,7 +63,7 @@ corresponding Scala runtime class.
By default, beginning and trailing whitespace in element content is removed,
and consecutive occurrences of whitespace are replaced by a single space
-character \\u0020. This behavior can be changed to preserve all whitespace
+character `\u0020`. This behavior can be changed to preserve all whitespace
with a compiler option.
```
@@ -79,12 +79,13 @@ CharData ::= { CharNoRef } $\mbox{\rm\em without}$ {CharNoRef}`{'CharB {C
$\mbox{\rm\em and without}$ {CharNoRef}`]]>'{CharNoRef}
```
+<!-- {% raw %} stupid liquid borks on the double brace below; brace yourself, liquid! -->
XML expressions may contain Scala expressions as attribute values or
within nodes. In the latter case, these are embedded using a single opening
-brace ‘{’ and ended by a closing brace ‘}’. To express a single opening braces
-within XML text as generated by CharData, it must be doubled. Thus, ‘{{’
-represents the XML text ‘{’ and does not introduce an embedded Scala
-expression.
+brace `{` and ended by a closing brace `}`. To express a single opening braces
+within XML text as generated by CharData, it must be doubled.
+Thus, `{{` represents the XML text `{` and does not introduce an embedded Scala expression.
+<!-- {% endraw %} -->
```
BaseChar, Char, Comment, CombiningChar, Ideographic, NameChar, S, Reference
@@ -104,7 +105,7 @@ XNameStart ::= ‘_’ | BaseChar | Ideographic
## XML patterns
XML patterns are patterns generated by the following production, where
-the opening bracket ‘<’ of the element patterns must be in a position
+the opening bracket `<` of the element patterns must be in a position
to start the lexical [XML mode](#xml-mode).
```
@@ -123,7 +124,7 @@ Whitespace is treated the same way as in XML expressions.
By default, beginning and trailing whitespace in element content is removed,
and consecutive occurrences of whitespace are replaced by a single space
-character \\u0020. This behavior can be changed to preserve all whitespace
+character `\u0020`. This behavior can be changed to preserve all whitespace
with a compiler option.
```