From c55ec5caef6157686b035324b889b7951df06d15 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Thu, 7 Nov 2024 14:04:31 -0600 Subject: [PATCH] clean: Remove leading 0 from CSS dimensions --- se/formatting.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/se/formatting.py b/se/formatting.py index 9d4d5bab..b2c0c260 100644 --- a/se/formatting.py +++ b/se/formatting.py @@ -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