Merge pull request #1359 from oscarfonts/grid-HTMLExporter-maxtextlength

Don't truncate texts on SQLFORM.grid HTML Export
This commit is contained in:
mdipierro
2016-07-29 08:33:25 -05:00
committed by GitHub
+2 -2
View File
@@ -3550,8 +3550,8 @@ class ExporterHTML(ExportClass):
ExportClass.__init__(self, rows)
def export(self):
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 '')
table = SQLTABLE(self.rows, truncate=None) 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>' % (table or '')
class ExporterXML(ExportClass):