Skip to content

Commit

Permalink
Fixes the margin type
Browse files Browse the repository at this point in the history
  • Loading branch information
stumpylog committed Sep 30, 2024
1 parent 603bf89 commit 35c309f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gotenberg_client/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def to_form(self, name: str) -> Dict[str, str]:
if self.unit == MarginUnitType.Undefined:
return optional_to_form(self.value, name)
else:
return optional_to_form(f"{self.value}{self.unit}", name)
return optional_to_form(f"{self.value}{self.unit.value}", name)


@dataclasses.dataclass
Expand Down

0 comments on commit 35c309f

Please sign in to comment.