Skip to content

Commit c0ec63f

Browse files
authored
Fix previous edit from my phone. =P
1 parent db5273c commit c0ec63f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Node/Number.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public function output(Compiler $compiler = null)
293293
$unit = key($units);
294294
$dimension = number_format($dimension, static::$precision, '.', '');
295295

296-
return (static::$precision ? rtrim($dimension, '.0') : $dimension) . $unit;
296+
return (static::$precision ? rtrim(rtrim($dimension, '0'), '.') : $dimension) . $unit;
297297
}
298298

299299
/**

0 commit comments

Comments
 (0)