Skip to content

Commit

Permalink
Added public API call for 'generateODTfromHTMLCode()'.
Browse files Browse the repository at this point in the history
  • Loading branch information
lpaulsen93 committed Jul 7, 2019
1 parent 84cd947 commit d9f1a51
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions renderer/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -2267,6 +2267,18 @@ public function setUnorderedListParams ($setLevel, $align, $paddingLeft=0, $marg
public function insertBookmark($id, $now=true) {
$this->document->insertBookmark($id, $now);
}

/**
* Automatically generate ODT elements from HTML code.
*
* @param string $html_code The HTML code to convert
* @param array $options Options array (FIXME: documentation needed)
* @see ODTUtility::generateODTfromHTMLCode for detailed desciption.
*/
public function generateODTfromHTMLCode($html_code, $options=null) {
// Generate ODT content from Geshi's HTML code
$this->document->generateODTfromHTMLCode($html_code, $options);
}
}

//Setup VIM: ex: et ts=4 enc=utf-8 :

0 comments on commit d9f1a51

Please sign in to comment.