mailr18719 - in /branches/frame_order_testing: ./ lib/text/table.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on March 08, 2013 - 18:34:
Author: bugman
Date: Fri Mar  8 18:34:28 2013
New Revision: 18719

URL: http://svn.gna.org/viewcvs/relax?rev=18719&view=rev
Log:
Merged revisions 18718 via svnmerge from 
svn+ssh://bugman@xxxxxxxxxxx/svn/relax/trunk

........
  r18718 | bugman | 2013-03-08 18:34:10 +0100 (Fri, 08 Mar 2013) | 3 lines
  
  Booleans are not numbers, so do not right justify them in 
lib.text.table.format_table().
........

Modified:
    branches/frame_order_testing/   (props changed)
    branches/frame_order_testing/lib/text/table.py

Propchange: branches/frame_order_testing/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Fri Mar  8 18:34:28 2013
@@ -1,1 +1,1 @@
-/trunk:1-18716
+/trunk:1-18718

Modified: branches/frame_order_testing/lib/text/table.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/frame_order_testing/lib/text/table.py?rev=18719&r1=18718&r2=18719&view=diff
==============================================================================
--- branches/frame_order_testing/lib/text/table.py (original)
+++ branches/frame_order_testing/lib/text/table.py Fri Mar  8 18:34:28 2013
@@ -75,7 +75,7 @@
             justification[i][j] = 'l'
 
             # Right justify numbers.
-            if isinstance(data[i][j], int) or is_float(data[i][j]):
+            if not isinstance(data[i][j], bool) and (isinstance(data[i][j], 
int) or is_float(data[i][j])):
                 justification[i][j] = 'r'
 
             # None types.




Related Messages


Powered by MHonArc, Updated Fri Mar 08 19:00:01 2013