diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 18ec004d3891fe97f221f4576e9924a33e1ffac2..731d2ddea09b1651c07d2ecc4f55489bf8609d13 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -590,9 +590,9 @@ class Doku_Handler { case DOKU_LEXER_MATCHED: if ( $match == ' ' ){ $this->_addCall('cdata', array($match), $pos); - } else if ( strpos('\t',$match) !== false ) { + } else if ( preg_match('/\t+/',$match) ) { $this->_addCall('table_align', array($match), $pos); - } else if ( strpos(' ',$match) !== false ) { + } else if ( preg_match('/ {2,}/',$match) ) { $this->_addCall('table_align', array($match), $pos); } else if ( $match == "\n|" ) { $this->_addCall('table_row', array(), $pos);