From d3581ec7d244c5716cf9348790dec8d2099af744 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 29 Dec 2003 15:55:08 +0000 Subject: [PATCH] * src/WriteXML.py (XmlWriter.write_note): Don't use format=0, since it is the default. svn: r2563 --- src/WriteXML.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/WriteXML.py b/src/WriteXML.py index a55ad47a8..ad8c0d788 100644 --- a/src/WriteXML.py +++ b/src/WriteXML.py @@ -389,7 +389,10 @@ class XmlWriter: self.g.write(" " * indent) format = noteobj.getFormat() - self.g.write('<%s format="%d">' % (val,format)) + if format: + self.g.write('<%s format="%d">' % (val,format)) + else: + self.g.write('<%s>' % val) self.g.write(self.fix(string.rstrip(text))) self.g.write("\n" % val)