Skip to content

Commit

Permalink
Merge pull request dokuwiki#1048 from splitbrain/add-tbody
Browse files Browse the repository at this point in the history
Add missing tbody to renderer
  • Loading branch information
splitbrain committed Feb 23, 2015
2 parents 6b25bf2 + 5a93f86 commit d30d6d6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
12 changes: 12 additions & 0 deletions inc/parser/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,18 @@ function tablethead_open() {
function tablethead_close() {
}

/**
* Open a table body
*/
function tabletbody_open() {
}

/**
* Close a table body
*/
function tabletbody_close() {
}

/**
* Open a table row
*/
Expand Down
16 changes: 15 additions & 1 deletion inc/parser/xhtml.php
Original file line number Diff line number Diff line change
Expand Up @@ -1289,6 +1289,20 @@ function tablethead_close() {
$this->doc .= DOKU_TAB.'</thead>'.DOKU_LF;
}

/**
* Open a table body
*/
function tabletbody_open() {
$this->doc .= DOKU_TAB.'<tbody>'.DOKU_LF;
}

/**
* Close a table body
*/
function tabletbody_close() {
$this->doc .= DOKU_TAB.'</tbody>'.DOKU_LF;
}

/**
* Open a table row
*/
Expand Down Expand Up @@ -1753,7 +1767,7 @@ function _audio($src, $atts = array()) {
$out .= '</audio>'.NL;
return $out;
}

/**
* _getLastMediaRevisionAt is a helperfunction to internalmedia() and _media()
* which returns an existing media revision less or equal to rev or date_at
Expand Down

0 comments on commit d30d6d6

Please sign in to comment.