From: <var...@us...> - 2009-01-09 09:56:17
|
Revision: 6386 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6386&view=rev Author: vargenau Date: 2009-01-09 09:56:12 +0000 (Fri, 09 Jan 2009) Log Message: ----------- Numeric cells are right-aligned by default Modified Paths: -------------- trunk/lib/plugin/WikicreoleTable.php Modified: trunk/lib/plugin/WikicreoleTable.php =================================================================== --- trunk/lib/plugin/WikicreoleTable.php 2009-01-08 15:26:25 UTC (rev 6385) +++ trunk/lib/plugin/WikicreoleTable.php 2009-01-09 09:56:12 UTC (rev 6386) @@ -6,7 +6,7 @@ syntax. */ /* - * Copyright (C) 2008 Alcatel-Lucent + * Copyright (C) 2008-2009 Alcatel-Lucent * * This file is part of PhpWiki. * @@ -114,7 +114,11 @@ $cell = trim(substr($cell, 1)); $htmlrow->pushContent(HTML::th(TransformInline($cell, 2.0, $basepage))); } else { - $htmlrow->pushContent(HTML::td(TransformInline($cell, 2.0, $basepage))); + if (is_numeric($cell)) { + $htmlrow->pushContent(HTML::td(array('style' => "text-align:right"), $cell)); + } else { + $htmlrow->pushContent(HTML::td(TransformInline($cell, 2.0, $basepage))); + } } } $htmltable->pushContent($htmlrow); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |