mirror of
https://github.com/zamentur/libreto.git
synced 2025-11-05 22:05:00 +05:30
Fix .odt export
This commit is contained in:
parent
7c4d4fdb9e
commit
da3f312fec
1 changed files with 0 additions and 2 deletions
|
|
@ -172,7 +172,6 @@ class Libreto
|
|||
public function export(){
|
||||
|
||||
$title = $this->name();
|
||||
//$introduction = $this->pads()->find('about') ? $this->pads()->find('about')->html() : false;
|
||||
|
||||
$pads = $this->pads()->children();
|
||||
$chapters = array();
|
||||
|
|
@ -186,7 +185,6 @@ class Libreto
|
|||
|
||||
$odt = new \CatoTH\HTML2OpenDocument\Text();
|
||||
$odt->addHtmlTextBlock('<h1>' . $title . '</h1>');
|
||||
//$odt->addHtmlTextBlock($introduction);
|
||||
foreach ($chapters as $chapter) {
|
||||
$odt->addHtmlTextBlock('<h2>' . $chapter['title'] . '</h2>');
|
||||
$odt->addHtmlTextBlock($chapter['html']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue