mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
net.html: do not inject <text> tags for text that contains only newlines and spaces
This commit is contained in:
parent
822acd78cb
commit
57aa4def62
@ -71,7 +71,7 @@ fn (mut parser Parser) verify_end_comment(remove bool) bool {
|
||||
fn blank_string(data string) bool {
|
||||
mut count := 0
|
||||
for chr in data {
|
||||
if chr == 9 || chr == 32 {
|
||||
if chr == 10 || chr == 9 || chr == 32 {
|
||||
count++
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user