diff options
author | hakan.sandell <hakan.sandell@mydata.se> | 2009-11-03 17:10:02 +0100 |
---|---|---|
committer | hakan.sandell <hakan.sandell@mydata.se> | 2009-11-03 17:10:02 +0100 |
commit | 25b97867c7d50ea2cbce4db0662c278b135db5a6 (patch) | |
tree | 118c91d7ec12538d544528b4dbd7ddd2c71cbad2 /inc/parser/xhtml.php | |
parent | 1f8eb24f4e8a49f1d2205b797b0ab46b82105b5f (diff) | |
download | rpg-25b97867c7d50ea2cbce4db0662c278b135db5a6.tar.gz rpg-25b97867c7d50ea2cbce4db0662c278b135db5a6.tar.bz2 |
rowspan with ::: implemented in parser/handler
darcs-hash:20091103161002-9a5f4-2114938a7e62a924b9fe424b63584a4747286563.gz
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r-- | inc/parser/xhtml.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index e68df6709..d2669a39c 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -948,7 +948,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $this->doc .= DOKU_LF . DOKU_TAB . '</tr>' . DOKU_LF; } - function tableheader_open($colspan = 1, $align = NULL){ + function tableheader_open($colspan = 1, $align = NULL, $rowspan = 1){ $class = 'class="col' . $this->_counter['cell_counter']++; if ( !is_null($align) ) { $class .= ' '.$align.'align'; @@ -959,6 +959,9 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $this->_counter['cell_counter'] += $colspan-1; $this->doc .= ' colspan="'.$colspan.'"'; } + if ( $rowspan > 1 ) { + $this->doc .= ' rowspan="'.$rowspan.'"'; + } $this->doc .= '>'; } @@ -966,7 +969,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $this->doc .= '</th>'; } - function tablecell_open($colspan = 1, $align = NULL){ + function tablecell_open($colspan = 1, $align = NULL, $rowspan = 1){ $class = 'class="col' . $this->_counter['cell_counter']++; if ( !is_null($align) ) { $class .= ' '.$align.'align'; @@ -977,6 +980,9 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $this->_counter['cell_counter'] += $colspan-1; $this->doc .= ' colspan="'.$colspan.'"'; } + if ( $rowspan > 1 ) { + $this->doc .= ' rowspan="'.$rowspan.'"'; + } $this->doc .= '>'; } |