Browse Source

Merge pull request #171 from vrenaville/quote_csv

Quote all text to prevent false cell split in Excel
pull/61/merge
Pedro M. Baeza 9 years ago
parent
commit
a2ed20547c
  1. 4
      account_export_csv/wizard/account_export_csv.py

4
account_export_csv/wizard/account_export_csv.py

@ -45,7 +45,9 @@ class AccountUnicodeWriter(object):
# Redirect output to a queue
self.queue = cStringIO.StringIO()
# created a writer with Excel formating settings
self.writer = csv.writer(self.queue, dialect=dialect, **kwds)
self.writer = csv.writer(self.queue, dialect=dialect,
quoting=csv.QUOTE_ALL, **kwds)
self.stream = f
self.encoder = codecs.getincrementalencoder(encoding)()

Loading…
Cancel
Save