[Libreoffice-commits] .: src/docdraw.py
Miklos Vajna
vmiklos at kemper.freedesktop.org
Fri Dec 7 07:51:46 PST 2012
src/docdraw.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit b81b70b7596f150e11ce6aec148f9aa01af4a4e8
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Fri Dec 7 16:51:40 2012 +0100
docdraw: print -> recHdl.appendLine
diff --git a/src/docdraw.py b/src/docdraw.py
index ac3bcff..ca62227 100644
--- a/src/docdraw.py
+++ b/src/docdraw.py
@@ -21,7 +21,7 @@ class OfficeArtContainer(DOCDirStream):
self.parent = parent
def dumpXml(self, recHdl, rh = None):
- print '<%s type="%s">' % (self.name, self.type)
+ recHdl.appendLine('<%s type="%s">' % (self.name, self.type))
if self.contained:
self.rh = rh
else:
@@ -42,9 +42,9 @@ class OfficeArtContainer(DOCDirStream):
child.dumpXml(self, rh)
self.pos = posOrig
else:
- print '<todo what="%s: recType = %s unhandled (size: %d bytes)"/>' % (self.type, hex(rh.recType), rh.recLen)
+ recHdl.appendLine('<todo what="%s: recType = %s unhandled (size: %d bytes)"/>' % (self.type, hex(rh.recType), rh.recLen))
pos += rh.recLen
- print '</%s>' % self.name
+ recHdl.appendLine('</%s>' % self.name)
assert pos == self.pos + self.rh.recLen
self.parent.pos = pos
More information about the Libreoffice-commits
mailing list