fix missing article header

This commit is contained in:
quenousimporte 2024-08-28 16:55:33 +02:00
parent 4b4179cf8a
commit c6f604c28b
1 changed files with 6 additions and 4 deletions

View File

@ -78,7 +78,8 @@
{
$node = $nodes->item(0);
$nodehtml = get_clean_html($node);
$epub->AddPage($nodehtml, false, $title);
$result .= $nodehtml;
$epub->AddPage($result, false, $title);
}
}
@ -463,7 +464,6 @@
$doc->loadHTML($article);
$finder = new DomXPath($doc);
$result = '<h1>' . $title . '</h1>';
$result .= '<p>' . $author . '</p>';
$result .= '<p>' . $item->pubDate . '</p>';
@ -479,7 +479,8 @@
{
$node = $nodes->item(0);
$nodehtml = get_clean_html($node);
$epub->AddPage($nodehtml, false, $title);
$result .= $nodehtml;
$epub->AddPage($result, false, $title);
}
}
@ -547,7 +548,8 @@
{
$node = $nodes->item(0);
$nodehtml = get_clean_html($node);
$epub->AddPage($nodehtml, false, $title);
$result .= $nodehtml;
$epub->AddPage($result, false, $title);
}
}
}