From: Martin Trigaux Date: Sat, 28 Oct 2017 08:37:56 +0000 (+0200) Subject: add a title page X-Git-Tag: 2.3.0~30^2~3 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;ds=sidebyside;h=a6e9ad0b7d4108a170b7d2e43576377bb0ad7516;p=github%2Fwallabag%2Fwallabag.git add a title page The first page of the book is the title --- diff --git a/src/Wallabag/CoreBundle/Helper/EntriesExport.php b/src/Wallabag/CoreBundle/Helper/EntriesExport.php index 830798b8..1b4afa3b 100644 --- a/src/Wallabag/CoreBundle/Helper/EntriesExport.php +++ b/src/Wallabag/CoreBundle/Helper/EntriesExport.php @@ -190,7 +190,8 @@ class EntriesExport // in filenames, we limit to A-z/0-9 $filename = preg_replace('/[^A-Za-z0-9\-]/', '', $entry->getTitle()); - $chapter = $content_start . $entry->getContent() . $bookEnd; + $titlepage = "

".$entry->getTitle()."

"; + $chapter = $content_start . $titlepage . $entry->getContent() . $bookEnd; $book->addChapter($entry->getTitle(), htmlspecialchars($filename) . '.html', $chapter, true, EPub::EXTERNAL_REF_ADD); }