From: <var...@us...> - 2009-02-11 20:06:25
|
Revision: 6482 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6482&view=rev Author: vargenau Date: 2009-02-11 20:06:17 +0000 (Wed, 11 Feb 2009) Log Message: ----------- Allow negative number in compact cell notation "|56||-78" Modified Paths: -------------- trunk/lib/plugin/MediawikiTable.php Modified: trunk/lib/plugin/MediawikiTable.php =================================================================== --- trunk/lib/plugin/MediawikiTable.php 2009-02-05 14:48:07 UTC (rev 6481) +++ trunk/lib/plugin/MediawikiTable.php 2009-02-11 20:06:17 UTC (rev 6482) @@ -78,8 +78,8 @@ // We allow the compact Mediawiki syntax with: // - multiple cells on the same line (separated by "||"), // - multiple header cells on the same line (separated by "!!"). - $argstr = str_replace("||", "\n|", $argstr); - $argstr = str_replace("!!", "\n!", $argstr); + $argstr = str_replace("||", "\n| ", $argstr); + $argstr = str_replace("!!", "\n! ", $argstr); $lines = preg_split('/\n/', $argstr); $table = HTML::table(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |