From 9e302cd2c0bdc64c2b470fa4f3b9c48b2a3467f5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Sun, 4 Feb 2007 15:03:19 +0000
Subject: [PATCH] select style to right align numerical values for list items

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12545 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_pdf_style/listbox_pdf_macro.xml         | 4 +++-
 bt5/erp5_pdf_style/bt/revision                                | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/listbox_pdf_macro.xml b/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/listbox_pdf_macro.xml
index 87fb496141..66294f4ab7 100644
--- a/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/listbox_pdf_macro.xml
+++ b/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/listbox_pdf_macro.xml
@@ -133,7 +133,9 @@
                   <tal:block tal:condition="python: is_list">\n
                     <td>\n
                       <tal:block tal:repeat="item column_property">\n
-                        <para  style="TableStandard" tal:content="item"/>\n
+                        <para style="TableStandard"\n
+                              tal:attributes="style python:isinstance(item, (int, long, float)) and \'TableStandardRightAligned\' or \'TableStandardLeftAligned\'"\n
+                              tal:content="item"/>\n
                       </tal:block>\n
                     </td>\n
                   </tal:block>\n
diff --git a/bt5/erp5_pdf_style/bt/revision b/bt5/erp5_pdf_style/bt/revision
index dec2bf5d61..25bf17fc5a 100644
--- a/bt5/erp5_pdf_style/bt/revision
+++ b/bt5/erp5_pdf_style/bt/revision
@@ -1 +1 @@
-19
\ No newline at end of file
+18
\ No newline at end of file
-- 
2.30.9