diff options
author | Adrian Lang <lang@cosmocode.de> | 2009-11-19 15:06:19 +0100 |
---|---|---|
committer | Adrian Lang <lang@cosmocode.de> | 2010-01-19 16:41:12 +0100 |
commit | 07c2b1c7ce9255456bf19c45cf9d34452cec2af1 (patch) | |
tree | d82743e5711fdc2713530f4d09c4a01a293ce62e /inc/parser | |
parent | 7c4635c4cfa34ef378423e198f9e78548cce62f0 (diff) | |
download | rpg-07c2b1c7ce9255456bf19c45cf9d34452cec2af1.tar.gz rpg-07c2b1c7ce9255456bf19c45cf9d34452cec2af1.tar.bz2 |
Add TABLE range marker for table editing
darcs-hash:20091119140619-e4919-15efddc768526a6c1f6472f83ede17019144ffa3.gz
Diffstat (limited to 'inc/parser')
-rw-r--r-- | inc/parser/handler.php | 5 | ||||
-rw-r--r-- | inc/parser/renderer.php | 2 | ||||
-rw-r--r-- | inc/parser/xhtml.php | 3 |
3 files changed, 6 insertions, 4 deletions
diff --git a/inc/parser/handler.php b/inc/parser/handler.php index eaa42f9bf..ea5a69b35 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -589,10 +589,11 @@ class Doku_Handler { } else { $this->_addCall('tablecell', array(), $pos); } + $this->status['table_begin'] = $pos; break; case DOKU_LEXER_EXIT: - $this->_addCall('table_end', array(), $pos); + $this->_addCall('table_end', array($this->status['table_begin']+1, $pos), $pos); $this->CallWriter->process(); $ReWriter = & $this->CallWriter; $this->CallWriter = & $ReWriter->CallWriter; @@ -1222,7 +1223,7 @@ class Doku_Handler_Table { } function tableEnd($call) { - $this->tableCalls[] = array('table_close',array(),$call[2]); + $this->tableCalls[] = array('table_close',$call[1],$call[2]); $this->finalizeTable(); } diff --git a/inc/parser/renderer.php b/inc/parser/renderer.php index 6082e935d..65dcaf8a1 100644 --- a/inc/parser/renderer.php +++ b/inc/parser/renderer.php @@ -233,7 +233,7 @@ class Doku_Renderer extends DokuWiki_Plugin { function table_open($maxcols = NULL, $numrows = NULL){} - function table_close(){} + function table_close($begin, $end){} function tablerow_open(){} diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 20acf4281..4e848ec1d 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -851,8 +851,9 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $this->doc .= '<table class="inline">'.DOKU_LF; } - function table_close(){ + function table_close($begin, $end){ $this->doc .= '</table>'.DOKU_LF; + $this->doc .= '<!-- TABLE ['. $begin .'-'.$end.'] -->'; } function tablerow_open(){ |