Merge branch 'release/0.8.4'

This commit is contained in:
Kenneth Reitz
2010-10-04 15:52:43 -04:00
4 changed files with 17 additions and 4 deletions
+7
View File
@@ -1,5 +1,10 @@
History
=======
0.8.4 (2010-10-04)
------------------
* Upated XLS output: Only wrap if '\n' in cell.
0.8.3 (2010-10-04)
------------------
@@ -10,9 +15,11 @@ History
0.8.2 (2010-10-04)
------------------
* Added alignment wrapping to written cells.
* Added separator support to XLS.
0.8.1 (2010-09-28)
------------------
* Packaging Fix
+1 -1
View File
@@ -17,7 +17,7 @@ if sys.argv[-1] == "publish":
setup(
name='tablib',
version='0.8.3',
version='0.8.4',
description='Format agnostic tabular data library (XLS, JSON, YAML, CSV)',
long_description=open('README.rst').read() + '\n\n' +
open('HISTORY.rst').read(),
+2 -2
View File
@@ -7,8 +7,8 @@ from tablib.formats import FORMATS as formats
__title__ = 'tablib'
__version__ = '0.8.3'
__build__ = 0x000803
__version__ = '0.8.4'
__build__ = 0x000804
__author__ = 'Kenneth Reitz'
__license__ = 'MIT'
__copyright__ = 'Copyright 2010 Kenneth Reitz'
+7 -1
View File
@@ -9,9 +9,12 @@ import cStringIO
title = 'xls'
extentions = ('xls',)
# special styles
wrap = xlwt.easyxf("alignment: wrap on")
bold = xlwt.easyxf("font: bold on")
def export_set(dataset):
"""Returns XLS representation of Dataset."""
@@ -62,6 +65,9 @@ def dset_sheet(dataset, ws):
# wrap the rest
else:
ws.write(i, j, col, wrap)
if '\n' in col:
ws.write(i, j, col, wrap)
else:
ws.write(i, j, col)