diff options
author | hakan.sandell <hakan.sandell@mydata.se> | 2009-10-24 20:26:12 +0200 |
---|---|---|
committer | hakan.sandell <hakan.sandell@mydata.se> | 2009-10-24 20:26:12 +0200 |
commit | 3a0a18ff0d26a6a8b1ed9cd726e539bcc817c875 (patch) | |
tree | 6e680f6c1e036dab6c7539083361fb447f3b8eb2 /inc/parser/xhtml.php | |
parent | 6884102748327d85cceed4d5026a7afb95ff8726 (diff) | |
download | rpg-3a0a18ff0d26a6a8b1ed9cd726e539bcc817c875.tar.gz rpg-3a0a18ff0d26a6a8b1ed9cd726e539bcc817c875.tar.bz2 |
rowspan efficency
darcs-hash:20091024182612-9a5f4-756475dbae2bd70cd16f675a8ace155d260937a6.gz
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r-- | inc/parser/xhtml.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 8bc2d12cd..e68df6709 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -858,6 +858,8 @@ class Doku_Renderer_xhtml extends Doku_Renderer { // modify created table to add rowspan for cells containing ::: // first preprocess created xhtml table and transfer data to $tbody array $table = substr($this->doc, $this->_counter['table_begin_pos']); + if (!preg_match('/>\s*?:::\s*?</', $table)) return; + preg_match('/(<table.*?>)(.*?)<\/table>/ims', $table, $matches, PREG_OFFSET_CAPTURE); $tbody_prefix = $matches[1][0]; $nrow = preg_match_all('/(<tr.*?>)(.*?)<\/tr>/ims', $matches[2][0], $matches); // split and get number of rows |