From d2a997394b23993c7212d8db2a70f7e3cf6751ad Mon Sep 17 00:00:00 2001
From: Andreas Gohr <gohr@cosmocode.de>
Date: Tue, 24 Jan 2017 11:55:38 +0100
Subject: [PATCH] added table footer support to renderer

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.
---
 inc/parser/renderer.php | 12 ++++++++++++
 inc/parser/xhtml.php    | 14 ++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/inc/parser/renderer.php b/inc/parser/renderer.php
index d7a3faef8..8142a4107 100644
--- a/inc/parser/renderer.php
+++ b/inc/parser/renderer.php
@@ -719,6 +719,18 @@ class Doku_Renderer extends DokuWiki_Plugin {
     function tabletbody_close() {
     }
 
+    /**
+     * Open a table footer
+     */
+    function tabletfoot_open() {
+    }
+
+    /**
+     * Close a table footer
+     */
+    function tabletfoot_close() {
+    }
+
     /**
      * Open a table row
      */
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 724981820..11c76d579 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -1378,6 +1378,20 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
         $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
      *
-- 
GitLab