diff options
author | Andreas Gohr <andi@splitbrain.org> | 2010-10-27 20:53:59 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2010-10-27 20:53:59 +0200 |
commit | 55b3c9e8ad80fc80ec9ecaac33474e186cb88ee8 (patch) | |
tree | 1bf1359fee6044a704ac8465753e3c147d61e6e3 /inc/parser/xhtml.php | |
parent | e8b9cf5ae263f3b97aaa389dddd9e7458cc0894c (diff) | |
parent | baef77a2b52933a6dd7caf3f641ff5ce6e6164f3 (diff) | |
download | rpg-55b3c9e8ad80fc80ec9ecaac33474e186cb88ee8.tar.gz rpg-55b3c9e8ad80fc80ec9ecaac33474e186cb88ee8.tar.bz2 |
Merge branch 'master' into stable
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r-- | inc/parser/xhtml.php | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 5a3d945d1..37900b2c3 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -902,16 +902,23 @@ class Doku_Renderer_xhtml extends Doku_Renderer { } // $numrows not yet implemented - function table_open($maxcols = NULL, $numrows = NULL, $pos){ + function table_open($maxcols = null, $numrows = null, $pos = null){ global $lang; // initialize the row counter used for classes $this->_counter['row_counter'] = 0; - $this->doc .= '<div class="table ' . $this->startSectionEdit($pos, 'table') . '"><table class="inline">'.DOKU_LF; + $class = 'table'; + if ($pos !== null) { + $class .= ' ' . $this->startSectionEdit($pos, 'table'); + } + $this->doc .= '<div class="' . $class . '"><table class="inline">' . + DOKU_LF; } - function table_close($pos){ + function table_close($pos = null){ $this->doc .= '</table></div>'.DOKU_LF; - $this->finishSectionEdit($pos); + if ($pos !== null) { + $this->finishSectionEdit($pos); + } } function tablerow_open(){ |