From a28fd914b2f65bf2493f5eeebd4cfbe3df5c7edf Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 16 Oct 2008 21:32:29 +0200 Subject: corrected cell counter class for tables with colspans FS#1506 darcs-hash:20081016193229-7ad00-ce6bba96dbce07cdea1e9567a3fce8c84c424d5b.gz --- inc/parser/xhtml.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/parser') diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index a7d243283..96afd1593 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -831,7 +831,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $class .= '"'; $this->doc .= ' 1 ) { - $this->_counter['cell_counter'] += $colspan; + $this->_counter['cell_counter'] += $colspan-1; $this->doc .= ' colspan="'.$colspan.'"'; } $this->doc .= '>'; @@ -849,7 +849,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $class .= '"'; $this->doc .= ' 1 ) { - $this->_counter['cell_counter'] += $colspan; + $this->_counter['cell_counter'] += $colspan-1; $this->doc .= ' colspan="'.$colspan.'"'; } $this->doc .= '>'; -- cgit v1.2.3