From 796027909c7f5148d8a7bc9943762e958eaec048 Mon Sep 17 00:00:00 2001 From: David Beal Date: Wed, 7 Oct 2015 22:04:48 +0200 Subject: [PATCH] =?UTF-8?q?[FIX]=C2=A0add=20arg=20to=20workbook=20creation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report_xls/report_xls.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/report_xls/report_xls.py b/report_xls/report_xls.py index 4746b4b9..f36f38a8 100644 --- a/report_xls/report_xls.py +++ b/report_xls/report_xls.py @@ -120,7 +120,9 @@ class report_xls(report_sxw): parser_instance.set_context(objs, data, ids, 'xls') objs = parser_instance.localcontext['objects'] n = cStringIO.StringIO() - wb = xlwt.Workbook(encoding='utf-8') + # prevent style make error + # http://stackoverflow.com/questions/17130516/xlwt-set-style-making-error-more-than-4094-xfs-styles + wb = xlwt.Workbook(encoding='utf-8', style_compression=2) _p = AttrDict(parser_instance.localcontext) _xs = self.xls_styles self.xls_headers = {