Skip to content

Commit

Permalink
issue #11 fix
Browse files Browse the repository at this point in the history
(cherry picked from commit 9117e8f)
  • Loading branch information
marcinn committed Dec 10, 2013
1 parent 21e1e82 commit 196ec96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -43,7 +43,7 @@ def alltests():

setup (
name='z3c.rml',
version='2.4.1.dev0',
version='2.4.1.dev1',
author="Stephan Richter and the Zope Community",
author_email="zope-dev@zope.org",
description="An alternative implementation of RML",
Expand Down
6 changes: 4 additions & 2 deletions src/z3c/rml/flowable.py
Expand Up @@ -683,9 +683,11 @@ class BlockTable(Flowable):
def process(self):
attrs = dict(self.getAttributeValues())
# Get the table style; create a new one, if none is found
self.style = attrs.pop('style', None)
if self.style is None:
style = attrs.pop('style', None)
if style is None:
self.style = reportlab.platypus.tables.TableStyle()
else:
self.style = copy.deepcopy(style)
hAlign = attrs.pop('alignment', None)
# Extract all table rows and cells
self.rows = []
Expand Down

0 comments on commit 196ec96

Please sign in to comment.