[Libreoffice-commits] .: src/xlsrecord.py
Kohei Yoshida
kohei at kemper.freedesktop.org
Mon Apr 11 20:47:41 PDT 2011
src/xlsrecord.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 0d8eda6971d8d1aa5316a7c4005a2f7806e7207e
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Mon Apr 11 23:45:59 2011 -0400
Another place where the new column width will affect.
diff --git a/src/xlsrecord.py b/src/xlsrecord.py
index a4e71d5..5bd31de 100644
--- a/src/xlsrecord.py
+++ b/src/xlsrecord.py
@@ -116,8 +116,11 @@ append a line to be displayed.
Like parseBytes(), the derived classes must overwrite this method."""
pass
+ def __getHeaderStr (self):
+ return "%4.4Xh: "%self.header
+
def output (self):
- headerStr = "%4.4Xh: "%self.header
+ headerStr = self.__getHeaderStr()
print (headerStr + "-"*(globals.OutputWidth-len(headerStr)))
try:
self.parseBytes()
@@ -133,7 +136,7 @@ Like parseBytes(), the derived classes must overwrite this method."""
self.lines.append(line)
def appendMultiLine (self, line):
- charWidth = 61
+ charWidth = globals.OutputWidth - len(self.__getHeaderStr())
singleLine = ''
testLine = ''
for word in line.split():
More information about the Libreoffice-commits
mailing list