Skip to content

Commit

Permalink
Fix: correction that considers spaces with zeros
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmarcosdarosa committed Oct 23, 2024
1 parent 521ff1f commit 7cbdd13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docxtpl/inline_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _insert_image(self):
self.width,
self.height,
)
if self.spacing_left or self.spacing_right or self.spacing_top or self.spacing_bottom:
if self.spacing_left is not None or self.spacing_right is not None or self.spacing_top is not None or self.spacing_bottom is not None:
if self.spacing_top:
pic.set('distT', str(self.spacing_top))
if self.spacing_bottom:
Expand Down

0 comments on commit 7cbdd13

Please sign in to comment.