From a8574918a3bd65683f0a2de4a3f26dd0ec2c410f Mon Sep 17 00:00:00 2001
From: Anika Henke <anika@selfthinker.org>
Date: Sun, 27 Jun 2010 12:41:23 +0100
Subject: [PATCH] added div around tables to make scrolling too wide ones in
 restrictive designs possible (FS#1980)

---
 inc/parser/xhtml.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index c5a8b8218..78f6d3f84 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -906,11 +906,11 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
         global $lang;
         // initialize the row counter used for classes
         $this->_counter['row_counter'] = 0;
-        $this->doc .= '<table class="inline ' . $this->startSectionEdit($pos, 'table') . '">'.DOKU_LF;
+        $this->doc .= '<div class="table"><table class="inline ' . $this->startSectionEdit($pos, 'table') . '">'.DOKU_LF;
     }
 
     function table_close($pos){
-        $this->doc .= '</table>'.DOKU_LF;
+        $this->doc .= '</table></div>'.DOKU_LF;
         $this->finishSectionEdit($pos);
     }
 
-- 
GitLab