1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vweb: fix compiling templates containing '

This commit is contained in:
Delyan Angelov 2020-07-01 17:44:17 +03:00
parent 2f614ad79f
commit d43722fa85

View File

@ -65,7 +65,7 @@ _ = footer
mut in_span := false
//for _line in lines {
for i := 0; i < lines.len; i ++ {
line := lines[i].trim_space()
line := lines[i].trim_space().replace("\'", '"')
if line == '<style>' {
state = .css
} else if line == '</style>' {