Colors in format strings fix

This commit is contained in:
robotis
2012-05-07 09:37:07 +00:00
parent 7fe2ab3a31
commit 2fb2de84fa
4 changed files with 8 additions and 1 deletions

View File

@@ -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):

View File

@@ -23,3 +23,6 @@
height: 1px;
top: 50%;
}
#colors {
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#333333', GradientType=1);
}

View File

@@ -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);}

View File

@@ -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));
}