From e205b721f29d42e512c7f49310b9c921ad83aef8 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 24 Jan 2007 21:12:55 +0100 Subject: fixed broken table alignment darcs-hash:20070124201255-7ad00-532c5d1ddc4d24aab980ff2cf6f521b051c73be2.gz --- inc/parser/handler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc') diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 18ec004d3..731d2ddea 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); -- cgit v1.2.3