mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +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 "StringView $1 = \"\\"
|
||||
grep -v '^ *#' < "$2" | while IFS= read -r line; do
|
||||
echo "$line""\\"
|
||||
echo "$line""\\" | sed 's/"/\\\"/g'
|
||||
done
|
||||
echo "\"sv;"
|
||||
echo "}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue