OpenOffice fixes, calendar format fixes

svn: r1239
This commit is contained in:
Don Allingham
2003-01-06 05:14:49 +00:00
parent cdc6b08430
commit 487cf61840
14 changed files with 330 additions and 189 deletions

View File

@@ -454,8 +454,9 @@ class XmlWriter:
if date.isEmpty():
return
if cal != 0:
calstr = ' cformat="%s"' % date.get_calendar().NAME
name = date.get_calendar().NAME
if name != Calendar.Gregorian.NAME:
calstr = ' cformat="%s"' % name
else:
calstr = ''