Don't terminate on an empty input chunk in ExcerptChunks

This commit is contained in:
Max Brunsfeld 2021-12-16 16:05:28 -08:00
parent 31eeffa5a7
commit ae147a379d

View file

@ -2018,10 +2018,8 @@ impl<'a> Iterator for ExcerptChunks<'a> {
}
if let Some(chunk) = self.content_chunks.next() {
if !chunk.text.is_empty() {
return Some(chunk);
}
}
if self.footer_height > 0 {
let text = unsafe { str::from_utf8_unchecked(&NEWLINES[..self.footer_height]) };