28 Commits

Author SHA1 Message Date
robotis
cb291c5e80 Fix for issue 31. hsl(a) processing on floats. 2014-02-18 12:00:07 +00:00
Sascha Peilicke
277d8c3957 Fix '&' multiplication
Let'S do it by example:

  .ident_a, .ident_b {
    & + & + & { color: red; }
  }

We have to generate all permutations of the parent identifier list and
the amount of ampersand child identifiers. In the above case, the
exploded identifier list has ident_count**ampersand_count entries (8).

As a bonus, we get the same identifier sort order as lessc does.

Conflicts:
	lesscpy/plib/identifier.py
2014-01-24 14:01:10 +01:00
Sascha Peilicke
780dd21b22 Fix mixin guard comparison operator list
The operator list includes "=<", but not "<>", "!=" or "<=". Properly
adjust test cases and drop occurences of invalid operators. Raise a
syntax error if an unknown operator is used. See
http://lesscss.org/#-pattern-matching-and-guard-expressions
2013-12-18 13:51:45 +01:00
Sascha Peilicke
e6512edb98 Add utility away_from_zero_round and use it for LESS round()
Also _ophsl should use it when running unter Py3k (instead of
convergent_round).
2013-08-08 18:26:23 +02:00
Sascha Peilicke
7a65e81fa7 Add utility function convergent_round
Mimics Python3's changed rounding behavior: "The round() function
rounding strategy and return type have changed. Exact halfway cases are
now rounded to the nearest even result instead of away from zero. (For
example, round(2.5) now returns 2 rather than 3.) round(x[, n]) now
delegates to x.__round__([n]) instead of always returning a float. It
generally returns an integer when called with a single argument and a
value of the same type as x when called with two arguments."
2013-08-08 18:25:23 +02:00
Sascha Peilicke
d668b9dafe Some Python-3 compatibility fixes 2013-07-19 11:59:01 +02:00
Sascha Peilicke
c0a265e146 Fix PEP-8 issues (with autopep8 -a) 2013-07-19 11:22:12 +02:00
Patrick
0ff5b977ec fix an other utf-8 letter 2012-07-18 17:28:04 -04:00
Patrick
0660c17cd0 trying to fix python2 and utf-8 issues 2012-07-18 17:26:06 -04:00
jtm
9268e2725e checkpoint 2012-04-09 09:52:46 +00:00
jtm
ccbe525bc2 checkpoint 2012-04-08 15:44:56 +00:00
jtm
ba4fe2ea62 Documentation 2012-03-30 16:12:24 +00:00
jtm
5dc4b3e246 bug fix 2012-03-25 13:36:49 +00:00
jtm
b15674d56b Mixin guards 2012-03-25 13:25:05 +00:00
jtm
8de41b78cd whitespace following var 2012-03-23 17:16:40 +00:00
jtm
1cb5596349 0 > lvl mixins 2012-03-18 18:56:23 +00:00
jtm
84379359f5 checkpoint mixins 2012-03-18 10:08:36 +00:00
jtm
f7cdd98643 checkpoint colors 2012-03-10 16:27:14 +00:00
jtm
f0fb2b3d92 checkpoint 2012-03-03 09:58:47 +00:00
jtm
95198d414e checkpoint 2012-03-02 20:56:16 +00:00
jtm
e29806e126 checkpoint 2012-03-02 20:15:18 +00:00
jtm
05f51b39b1 checkpoint 2012-03-01 16:23:22 +00:00
jtm
85821dc163 checkpoint 2012-02-28 20:49:26 +00:00
jtm
c670a7b59b checkpoint 2012-02-28 20:24:54 +00:00
jtm
46da3b836a checkpoint 2012-02-25 18:28:05 +00:00
jtm
e08bef4d0e Refactor work 2012-02-25 17:08:08 +00:00
jtm
aaedc6bcfc factor 1 2012-02-19 20:38:19 +00:00
robotis
f4ba41cc1d initial commit 2012-01-28 14:52:09 +00:00