Skip to content

Commit

Permalink
clean: Remove leading 0 from CSS dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
acabal committed Nov 7, 2024
1 parent 047269d commit c55ec5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion se/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,8 @@ def _format_css_component_list(content: list, in_selector=False, in_paren_block=
if token.representation == "0":
output += "0"
else:
output += token.representation + token.lower_unit
# Remove leading 0 from dimensions
output += token.representation.lstrip("0") + token.lower_unit

if token.type == "number":
output += token.representation
Expand Down

0 comments on commit c55ec5c

Please sign in to comment.