mailr18718 - /trunk/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:10 2013
New Revision: 18718

URL: http://svn.gna.org/viewcvs/relax?rev=18718&view=rev
Log:
Booleans are not numbers, so do not right justify them in 
lib.text.table.format_table().


Modified:
    trunk/lib/text/table.py

Modified: trunk/lib/text/table.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/lib/text/table.py?rev=18718&r1=18717&r2=18718&view=diff
==============================================================================
--- trunk/lib/text/table.py (original)
+++ trunk/lib/text/table.py Fri Mar  8 18:34:10 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 18:40:02 2013