rspec/rules/S4652/rule.adoc

37 lines
657 B
Plaintext
Raw Normal View History

According to the W3C specifications:
2021-02-02 15:02:10 +01:00
2021-01-06 17:38:34 +01:00
____
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".
2021-02-16 04:11:42 +00:00
{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 (\).
2021-01-06 17:38:34 +01:00
____
== 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