Skip to content

Commit 43f1004

Browse files
committed
Fixed no border style
1 parent 087fa7e commit 43f1004

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pydocx/openxml/wordprocessing/border_properties.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ def __eq__(self, other):
8888
def __ne__(self, other):
8989
return not self == other
9090

91+
def __nonzero__(self):
92+
if self.style and self.style in ['nil', 'none']:
93+
return False
94+
return True
95+
9196

9297
class TopBorder(BaseBorder):
9398
XML_TAG = 'top'

0 commit comments

Comments
 (0)