Show
Ignore:
Timestamp:
04/17/03 11:36:30 (21 years ago)
Author:
jalet
Message:

Bad alignment in output

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/repykota

    r929 r931  
    2323# 
    2424# $Log$ 
     25# Revision 1.28  2003/04/17 09:36:30  jalet 
     26# Bad alignment in output 
     27# 
    2528# Revision 1.27  2003/04/17 09:26:21  jalet 
    2629# repykota now reports account balances too. 
     
    203206                    totalmoney += money 
    204207            if total or totalmoney :         
    205                 print (" " * 50) + (_("Total : %9i") % total) + (" %-12.12s" % ("%7.2f" % totalmoney)[:12]) 
     208                pass 
     209            print (" " * 50) + (_("Total : %9i") % total) + ("%11s" % ("%7.2f" % totalmoney)[:11]) 
    206210            printerpagecounter = self.storage.getPrinterPageCounter(printerid) 
    207211            try : 
     
    238242                reached = (((softlimit is not None) and (pagecounter >= softlimit) and "+") or "-") + "Q" 
    239243            strbalance = ("%5.2f" % balance)[:10] 
    240             strlifetimepaid = ("%6.2f" % lifetimepaid)[:11] 
    241             print "%-9.9s %s %7i %7s %7s %10s %-10.10s %8i %-11.11s" % (name, reached, pagecounter, str(softlimit), str(hardlimit), strbalance, str(datelimit)[:10], lifepagecounter, strlifetimepaid) 
     244            strlifetimepaid = ("%6.2f" % lifetimepaid)[:10] 
     245            print "%-9.9s %s %7i %7s %7s %10s %-10.10s %8i %10s" % (name, reached, pagecounter, str(softlimit), str(hardlimit), strbalance, str(datelimit)[:10], lifepagecounter, strlifetimepaid) 
    242246            return (lifepagecounter, lifetimepaid) 
    243247