Skip to content

Commit

Permalink
added table footer support to renderer
Browse files Browse the repository at this point in the history
This allows plugins to easily render a <tfoot> element in a table, even
though it's not used in standard table syntax it makes sense to have it
available.
  • Loading branch information
splitbrain committed Jan 24, 2017
1 parent fa2c560 commit d2a9973
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions inc/parser/renderer.php
Expand Up @@ -719,6 +719,18 @@ function tabletbody_open() {
function tabletbody_close() {
}

/**
* Open a table footer
*/
function tabletfoot_open() {
}

/**
* Close a table footer
*/
function tabletfoot_close() {
}

/**
* Open a table row
*/
Expand Down
14 changes: 14 additions & 0 deletions inc/parser/xhtml.php
Expand Up @@ -1378,6 +1378,20 @@ function tabletbody_close() {
$this->doc .= DOKU_TAB.'</tbody>'.DOKU_LF;
}

/**
* Open a table footer
*/
function tabletfoot_open() {
$this->doc .= DOKU_TAB.'<tfood>'.DOKU_LF;
}

/**
* Close a table footer
*/
function tabletfoot_close() {
$this->doc .= DOKU_TAB.'</tfood>'.DOKU_LF;
}

/**
* Open a table row
*
Expand Down

0 comments on commit d2a9973

Please sign in to comment.