Show More
@@ -547,12 +547,8 b' def label(context, mapping, args):' | |||||
547 | # i18n: "label" is a keyword |
|
547 | # i18n: "label" is a keyword | |
548 | raise error.ParseError(_("label expects two arguments")) |
|
548 | raise error.ParseError(_("label expects two arguments")) | |
549 |
|
549 | |||
|
550 | ui = mapping['ui'] | |||
550 | thing = evalstring(context, mapping, args[1]) |
|
551 | thing = evalstring(context, mapping, args[1]) | |
551 |
|
||||
552 | ui = mapping.get('ui', '') |
|
|||
553 | if isinstance(ui, str): |
|
|||
554 | return thing |
|
|||
555 |
|
||||
556 | # preserve unknown symbol as literal so effects like 'red', 'bold', |
|
552 | # preserve unknown symbol as literal so effects like 'red', 'bold', | |
557 | # etc. don't need to be quoted |
|
553 | # etc. don't need to be quoted | |
558 | label = evalstringliteral(context, mapping, args[0]) |
|
554 | label = evalstringliteral(context, mapping, args[0]) |
General Comments 0
You need to be logged in to leave comments.
Login now