diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-10-16 21:32:29 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-10-16 21:32:29 +0200 |
commit | a28fd914b2f65bf2493f5eeebd4cfbe3df5c7edf (patch) | |
tree | 441f5b4c6a0e1b19b34e0cbe788a81797410877d /inc | |
parent | df813e6e5c7e12e433beb282f3121bc73cfeed26 (diff) | |
download | rpg-a28fd914b2f65bf2493f5eeebd4cfbe3df5c7edf.tar.gz rpg-a28fd914b2f65bf2493f5eeebd4cfbe3df5c7edf.tar.bz2 |
corrected cell counter class for tables with colspans FS#1506
darcs-hash:20081016193229-7ad00-ce6bba96dbce07cdea1e9567a3fce8c84c424d5b.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/parser/xhtml.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 .= '<th ' . $class; if ( $colspan > 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 .= '<td '.$class; if ( $colspan > 1 ) { - $this->_counter['cell_counter'] += $colspan; + $this->_counter['cell_counter'] += $colspan-1; $this->doc .= ' colspan="'.$colspan.'"'; } $this->doc .= '>'; |