Tables: Fix Bug 20078, add test for it
[lhc/web/wiklou.git] / includes / parser / Parser.php
index 5fc2974..3eafec2 100644 (file)
@@ -839,7 +839,7 @@ class Parser {
                        }
                        $matches = array();
 
-                       if ( preg_match( '/^(:*)\{\|(.*)$/', $line , $matches ) ) {
+                       if ( preg_match( '/^(:*)\s*\{\|(.*)$/', $line , $matches ) ) {
                                $tables[] = array();
                                $table =& $this->last( $tables );
                                $table[0] = array(); // first row