Set colw only if width is not 0
When column cell is empty and width is calculated to 0 it will
cause whole column to collapse into 0 width.
@@ -305,6 +305,7 @@ class pisaTagTD(pisaTag):
if len(self.node.childNodes) == 0:
width = c.frag.paddingLeft + c.frag.paddingRight
log.debug("Col {} has width {}".format(col, width))
+ if width:
tdata.colw[col] = _width(width)
else:
# Child nodes are present, we cannot do anything about the
