From ff7ea3971af63c61305789ad50b87d88951c6f37 Mon Sep 17 00:00:00 2001 From: vargenau Date: Fri, 9 Jan 2009 09:56:12 +0000 Subject: [PATCH] Numeric cells are right-aligned by default git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@6386 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/plugin/WikicreoleTable.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/plugin/WikicreoleTable.php b/lib/plugin/WikicreoleTable.php index 26e48fdb5..e456b65d2 100644 --- a/lib/plugin/WikicreoleTable.php +++ b/lib/plugin/WikicreoleTable.php @@ -6,7 +6,7 @@ rcs_id('$Id$'); syntax. */ /* - * Copyright (C) 2008 Alcatel-Lucent + * Copyright (C) 2008-2009 Alcatel-Lucent * * This file is part of PhpWiki. * @@ -114,7 +114,11 @@ extends WikiPlugin $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); -- 2.45.0