Show More
@@ -395,6 +395,10 b' def templatelabel(context, mapping, args' | |||||
395 | # i18n: "label" is a keyword |
|
395 | # i18n: "label" is a keyword | |
396 | raise error.ParseError(_("label expects two arguments")) |
|
396 | raise error.ParseError(_("label expects two arguments")) | |
397 |
|
397 | |||
|
398 | # add known effects to the mapping so symbols like 'red', 'bold', | |||
|
399 | # etc. don't need to be quoted | |||
|
400 | mapping.update(dict([(k, k) for k in _effects])) | |||
|
401 | ||||
398 | thing = templater._evalifliteral(args[1], context, mapping) |
|
402 | thing = templater._evalifliteral(args[1], context, mapping) | |
399 |
|
403 | |||
400 | # apparently, repo could be a string that is the favicon? |
|
404 | # apparently, repo could be a string that is the favicon? |
General Comments 0
You need to be logged in to leave comments.
Login now