Skip to content
Snippets Groups Projects
Commit 3a0a18ff authored by hakan.sandell's avatar hakan.sandell
Browse files

rowspan efficency

darcs-hash:20091024182612-9a5f4-756475dbae2bd70cd16f675a8ace155d260937a6.gz
parent 68841027
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment