[Libreoffice-commits] .: src/xlsrecord.py

Kohei Yoshida kohei at kemper.freedesktop.org
Mon Apr 11 20:41:11 PDT 2011


 src/xlsrecord.py |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 6b6878675af8221c8e5d1d0606a58ca7204ffb0f
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Mon Apr 11 23:39:25 2011 -0400

    Forgot to adjust column width in one place.

diff --git a/src/xlsrecord.py b/src/xlsrecord.py
index 047bdf2..a4e71d5 100644
--- a/src/xlsrecord.py
+++ b/src/xlsrecord.py
@@ -117,13 +117,14 @@ Like parseBytes(), the derived classes must overwrite this method."""
         pass
 
     def output (self):
-        print("%4.4Xh: %s"%(self.header, "-"*61))
+        headerStr = "%4.4Xh: "%self.header
+        print (headerStr + "-"*(globals.OutputWidth-len(headerStr)))
         try:
             self.parseBytes()
             for line in self.lines:
-                print("%4.4Xh: %s"%(self.header, line))
+                print (headerStr + line)
         except:
-            print("%4.4Xh: Error interpreting the record!"%self.header)
+            print(headerStr + "Error interpreting the record!"%self.header)
 
     def debug (self, msg):
         print ("%4.4Xh: %s"%(self.header, msg))


More information about the Libreoffice-commits mailing list