vweb: fix compiling templates containing '
parent
2f614ad79f
commit
d43722fa85
|
@ -65,7 +65,7 @@ _ = footer
|
||||||
mut in_span := false
|
mut in_span := false
|
||||||
//for _line in lines {
|
//for _line in lines {
|
||||||
for i := 0; i < lines.len; i ++ {
|
for i := 0; i < lines.len; i ++ {
|
||||||
line := lines[i].trim_space()
|
line := lines[i].trim_space().replace("\'", '"')
|
||||||
if line == '<style>' {
|
if line == '<style>' {
|
||||||
state = .css
|
state = .css
|
||||||
} else if line == '</style>' {
|
} else if line == '</style>' {
|
||||||
|
|
Loading…
Reference in New Issue