Skip to content

Commit

Permalink
Support redesign dokuwiki-plugin-odt
Browse files Browse the repository at this point in the history
Support redesign dokuwiki-plugin-odt
  • Loading branch information
LMS235 committed Jun 19, 2016
1 parent c52b861 commit 5ecbbf5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,17 @@ public function render($mode, Doku_Renderer $renderer, $data) {
}
# ODT Export Renderer
elseif ($mode == 'odt'){
$sapnote = explode('#', $data[0]);
if (!class_exists('ODTDocument')) {
// support of "old" dokuwiki-plugin-odt
$sapnote = explode('#', $data[0]);
$renderer->doc .= "$sapnote[1]";
return true;
return true;
} else {
// support of redesign dokuwiki-plugin-odt
$sapnote = explode('#', $data[0]);
$renderer->cdata ("$sapnote[1]");
return true;
}
}
return false;
}
Expand Down

0 comments on commit 5ecbbf5

Please sign in to comment.