Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # string-no-newline
  2. Disallow (unescaped) newlines in strings.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a {
  6. content: "first
  7. second"; ↑
  8. } ↑
  9. /** ↑
  10. * The newline here */
  11. ```
  12. [The spec](https://www.w3.org/TR/CSS2/syndata.html#strings) says this: "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'." And also: "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 (\\)."
  13. ## Options
  14. ### `true`
  15. The following patterns are considered violations:
  16. <!-- prettier-ignore -->
  17. ```css
  18. a {
  19. content: "first
  20. second";
  21. }
  22. ```
  23. <!-- prettier-ignore -->
  24. ```css
  25. [title="something
  26. is probably wrong"] {}
  27. ```
  28. <!-- prettier-ignore -->
  29. ```css
  30. a {
  31. font-family: "Times
  32. New
  33. Roman";
  34. }
  35. ```
  36. The following patterns are _not_ considered violations:
  37. <!-- prettier-ignore -->
  38. ```css
  39. a {
  40. content: "first\Asecond";
  41. }
  42. ```
  43. <!-- prettier-ignore -->
  44. ```css
  45. a {
  46. content: "first\\nsecond";
  47. }
  48. ```
  49. <!-- prettier-ignore -->
  50. ```css
  51. [title="nothing\
  52. is wrong"] {}
  53. ```
  54. <!-- prettier-ignore -->
  55. ```css
  56. a {
  57. font-family: "Times New Roman";
  58. }
  59. ```