1
0
Fork 0
mirror of https://gitlab.com/news-flash/article_scraper.git synced 2025-07-07 16:15:32 +02:00

small fix

This commit is contained in:
Jan Lukas Gernert 2023-03-19 13:31:10 +01:00
parent 29daf06a1b
commit 7737311a92

View file

@ -914,8 +914,7 @@ impl FullTextParser {
let total_count = img_count + embed_count + object_count + iframe_count;
if total_count == 0 && Util::get_inner_text(&node, false).trim().is_empty() {
node_iter = Util::next_node(&node, true);
node.unlink();
node_iter = Util::remove_and_next(&mut node);
continue;
}
}