mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-29 22:11:17 +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 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fmt.write_str(unsafe { str::from_utf8_unchecked(&bytes[start..]) })
|
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