Skip to content

Commit

Permalink
Merge pull request #4 from LarsGit223/master
Browse files Browse the repository at this point in the history
This appears top be working. Thank you for your help. 👍
  • Loading branch information
micgro42 committed Jul 13, 2015
2 parents 4700cde + 6e0eec1 commit afd9276
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion syntax.php
Expand Up @@ -63,10 +63,13 @@ function handle($match, $state, $pos, &$handler){
* Create output
*/
function render($mode, &$renderer, $data) {
if($mode == 'xhtml' || $mode='pdf'){
if($mode == 'xhtml' || $mode == 'pdf'){
$renderer->doc .= "<br style=\"page-break-after:always;\">";
$renderer->doc .= "<pagebreak />";
return true;
} else if ($mode == 'odt') {
$renderer->pagebreak();
return true;
}
return false;
}
Expand Down

0 comments on commit afd9276

Please sign in to comment.