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

whitespace fixes

This commit is contained in:
Jan Lukas Gernert 2023-03-24 08:02:08 +01:00
parent 2217c3c71a
commit b541cd73f8
46 changed files with 3808 additions and 2111 deletions

View file

@ -1001,7 +1001,7 @@ impl FullTextParser {
|| Util::has_single_tag_inside_element(&node, "SECTION")
{
if let Some(mut parent) = node.get_parent() {
if let Some(mut child) = node.get_child_nodes().into_iter().next() {
if let Some(mut child) = node.get_child_elements().into_iter().next() {
for (k, v) in node.get_attributes().into_iter() {
child.set_attribute(&k, &v).map_err(|e| {
log::error!("{e}");