mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-28 21:41:35 +00:00
Update EscapeWriter
HTML implementation to not output empty strings
This commit is contained in:
parent
b5a6a34bdd
commit
b5ecf9bd87
@ -129,7 +129,11 @@ impl Escaper for Html {
|
||||
}
|
||||
}
|
||||
}
|
||||
if start < bytes.len() {
|
||||
fmt.write_str(unsafe { str::from_utf8_unchecked(&bytes[start..]) })
|
||||
} else {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user