rspec/rules/S4652/rule.adoc
2021-02-16 04:11:42 +00:00

37 lines
657 B
Plaintext

According to the W3C specifications:
____
A string cannot directly contain a newline. To include a newline in a string, use an escape representing the line feed character in ISO-10646 (U+000A), such as "\A" or "\00000a".
{empty}[...]
It is possible to break strings over several lines, for aesthetic or other reasons, but in such a case the newline itself has to be escaped with a backslash (\).
____
== Noncompliant Code Example
----
a {
content: "first
second";
}
----
== Compliant Solution
----
a {
content: "first\Asecond";
}
----
== See
* https://www.w3.org/TR/CSS2/syndata.html#strings[CSS Specification] - Strings