<?php
/**
- * lessphp v0.4.0
+ * lessphp v0.4.0@785ad53840
* http://leafo.net/lessphp
*
* LESS css compiler, adapted from http://lesscss.org
*
* MIT LICENSE
*
- * Copyright (c) 2010-2012 Leaf Corcoran, http://leafo.net/lessphp
+ * Copyright 2013, Leaf Corcoran <leafot@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
}
protected function lib_round($arg) {
- $value = $this->assertNumber($arg);
- return array("number", round($value), $arg[2]);
+ if($arg[0] != "list") {
+ $value = $this->assertNumber($arg);
+ return array("number", round($value), $arg[2]);
+ } else {
+ $value = $this->assertNumber($arg[2][0]);
+ $precision = $this->assertNumber($arg[2][1]);
+ return array("number", round($value, $precision), $arg[2][0][2]);
+ }
}
protected function lib_unit($arg) {