Colors in format strings fix
This commit is contained in:
@@ -80,13 +80,13 @@ class Call(Node):
|
||||
i = 0
|
||||
for n in m:
|
||||
v = {
|
||||
'%d' : int,
|
||||
'%A' : urlquote,
|
||||
'%s' : utility.destring,
|
||||
}.get(n, str)(args[i])
|
||||
items.append(v)
|
||||
i += 1
|
||||
format = format.replace('%A', '%s')
|
||||
format = format.replace('%d', '%s')
|
||||
return format % tuple(items)
|
||||
|
||||
def isnumber(self, string, *args):
|
||||
|
||||
@@ -23,3 +23,6 @@
|
||||
height: 1px;
|
||||
top: 50%;
|
||||
}
|
||||
#colors {
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#333333', GradientType=1);
|
||||
}
|
||||
|
||||
1
lesscpy/test/css/calls.min.css
vendored
1
lesscpy/test/css/calls.min.css
vendored
@@ -2,3 +2,4 @@
|
||||
#escapes{escaped:-Some::weird(#thing, y);escaped1:-Some::weird(#thing, z);eformat:rgb(32, 128, 64);}
|
||||
#format{format:"rgb(32, 128, 64)";format-string:"hello world";format-multiple:"hello earth 2";format-url-encode:'red is %23ff0000';}
|
||||
#more{width:1px;height:1px;top:50%;}
|
||||
#colors{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#333333', GradientType=1);}
|
||||
|
||||
@@ -27,4 +27,7 @@
|
||||
width: ceil(5/3.0px);
|
||||
height: floor(5.0/3px);
|
||||
top: percentage(0.5);
|
||||
}
|
||||
#colors {
|
||||
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",#fff,#333));
|
||||
}
|
||||
Reference in New Issue
Block a user