Don't terminate on an empty input chunk in ExcerptChunks
This commit is contained in:
parent
31eeffa5a7
commit
ae147a379d
1 changed files with 1 additions and 3 deletions
|
@ -2018,9 +2018,7 @@ impl<'a> Iterator for ExcerptChunks<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(chunk) = self.content_chunks.next() {
|
if let Some(chunk) = self.content_chunks.next() {
|
||||||
if !chunk.text.is_empty() {
|
return Some(chunk);
|
||||||
return Some(chunk);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.footer_height > 0 {
|
if self.footer_height > 0 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue