Browse Source

Units are now removed from zero values

Taddeus Kroes 11 năm trước cách đây
mục cha
commit
faa045b9d1
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      simple.ml

+ 3 - 0
simple.ml

@@ -39,6 +39,9 @@ let rec shorten_expr = function
 
   (* TODO: hsl[a](...) *)
 
+  (* 0px -> 0 *)
+  | Number (0., Some _) -> Number (0., None)
+
   (* transform color names to shorter hex codes and vice-versa *)
   | v -> Color_names.compress v