fixed grid export in HTML

This commit is contained in:
mdipierro
2014-01-07 02:14:11 -06:00
parent 6d6a4d3d33
commit 14cacefa96
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.8.2-stable+timestamp.2014.01.06.10.55.29
Version 2.8.2-stable+timestamp.2014.01.07.02.13.10
+2 -1
View File
@@ -3204,7 +3204,8 @@ class ExporterHTML(ExportClass):
ExportClass.__init__(self, rows)
def export(self):
return '<html>\n<head>\n<meta http-equiv="content-type" content="text/html; charset=UTF-8" />\n</head>\n<body>\n%s\n</body>\n</html>' % (self.rows.xml() or '')
xml = self.rows.xml() if self.rows else ''
return '<html>\n<head>\n<meta http-equiv="content-type" content="text/html; charset=UTF-8" />\n</head>\n<body>\n%s\n</body>\n</html>' % (xml or '')
class ExporterXML(ExportClass):
label = 'XML'