diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-01-24 21:12:55 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-01-24 21:12:55 +0100 |
commit | e205b721f29d42e512c7f49310b9c921ad83aef8 (patch) | |
tree | 110ab38df6d13953240c3dfea63630e0cd835f73 /inc | |
parent | 1f82fabe74da331707281178e4a9c1df1107e46d (diff) | |
download | rpg-e205b721f29d42e512c7f49310b9c921ad83aef8.tar.gz rpg-e205b721f29d42e512c7f49310b9c921ad83aef8.tar.bz2 |
fixed broken table alignment
darcs-hash:20070124201255-7ad00-532c5d1ddc4d24aab980ff2cf6f521b051c73be2.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/parser/handler.php | 4 |
1 files changed, 2 insertions, 2 deletions
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); |