This commit is contained in:
Kovid Goyal 2015-03-17 10:25:49 +05:30
parent 8d7a936cec
commit a436fc5fc3

View File

@ -310,7 +310,7 @@ class BlockStyle(DOCXStyle):
style.append(ind)
if (self is normal_style and self.background_color) or self.background_color != normal_style.background_color:
makeelement(style, 'shd', val='clear', color='auto', fill=self.background_color or 'auto')
style.append(makeelement(style, 'shd', val='clear', color='auto', fill=self.background_color or 'auto'))
pbdr = self.serialize_borders(style.makeelement(w('pBdr')), normal_style)
if len(pbdr):