summaryrefslogtreecommitdiff
path: root/inc/parser/handler.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-01-06 12:12:09 +0100
committerAndreas Gohr <andi@splitbrain.org>2007-01-06 12:12:09 +0100
commit5b7d45a57dcad3a95cf71832234cb7e23891c5b2 (patch)
treec839c351f483ff526b785a1cb565758e995ed090 /inc/parser/handler.php
parentb2829dc4c1fa742dbcf6a7f6a2cab84db88730fb (diff)
downloadrpg-5b7d45a57dcad3a95cf71832234cb7e23891c5b2.tar.gz
rpg-5b7d45a57dcad3a95cf71832234cb7e23891c5b2.tar.bz2
readded two changes from recent rollback
darcs-hash:20070106111209-7ad00-2f632e44c6062d0c428269feb4276e83124eedad.gz
Diffstat (limited to 'inc/parser/handler.php')
-rw-r--r--inc/parser/handler.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/parser/handler.php b/inc/parser/handler.php
index a5d07a07a..20c01b1eb 100644
--- a/inc/parser/handler.php
+++ b/inc/parser/handler.php
@@ -585,9 +585,9 @@ class Doku_Handler {
case DOKU_LEXER_MATCHED:
if ( $match == ' ' ){
$this->_addCall('cdata', array($match), $pos);
- } else if ( preg_match('/\t+/',$match) ) {
+ } else if ( strpos('\t',$match) !== false ) {
$this->_addCall('table_align', array($match), $pos);
- } else if ( preg_match('/ {2,}/',$match) ) {
+ } else if ( strpos(' ',$match) !== false ) {
$this->_addCall('table_align', array($match), $pos);
} else if ( $match == "\n|" ) {
$this->_addCall('table_row', array(), $pos);