mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +00:00
LibWeb: Escape quotes in style sheet sources
Some rules in style sheets contain quotes, escaping them allows us to generate code that actually compiles for them.
This commit is contained in:
parent
442602bec8
commit
fd0ee8ae7b
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ echo "namespace Web::CSS {"
|
||||||
echo "extern StringView $1;"
|
echo "extern StringView $1;"
|
||||||
echo "StringView $1 = \"\\"
|
echo "StringView $1 = \"\\"
|
||||||
grep -v '^ *#' < "$2" | while IFS= read -r line; do
|
grep -v '^ *#' < "$2" | while IFS= read -r line; do
|
||||||
echo "$line""\\"
|
echo "$line""\\" | sed 's/"/\\\"/g'
|
||||||
done
|
done
|
||||||
echo "\"sv;"
|
echo "\"sv;"
|
||||||
echo "}"
|
echo "}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue