From 4e34edfa81bb7d042d30864a93f56198674e3c08 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 1 Jul 2020 22:03:14 +0300 Subject: [PATCH] vweb: allow quoting @css/@js resources with both ' and " --- vlib/vweb/tmpl/tmpl.v | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/vlib/vweb/tmpl/tmpl.v b/vlib/vweb/tmpl/tmpl.v index ea51419dd7..d0ef9266c0 100644 --- a/vlib/vweb/tmpl/tmpl.v +++ b/vlib/vweb/tmpl/tmpl.v @@ -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().replace("\'", '"') + line := lines[i].trim_space() if line == '' { @@ -98,16 +98,16 @@ _ = footer pos := line.index('@js') or { continue } - s.write('') + s.write('') } else if line.contains('@css ') { pos := line.index('@css') or { continue } - s.write('') + s.write('') } else if line.contains('@if ') { s.writeln(str_end) pos := line.index('@if') or {