mercurial/templater.py
changeset 25509 576d6c74784b
parent 25490 ad14fb602e5e
child 25580 a69983942fb4
equal deleted inserted replaced
25508:b8fd605b0c88 25509:576d6c74784b
   308         # i18n: "pad" is a keyword
   308         # i18n: "pad" is a keyword
   309         raise error.ParseError(_("pad() expects two to four arguments"))
   309         raise error.ParseError(_("pad() expects two to four arguments"))
   310 
   310 
   311     width = int(args[1][1])
   311     width = int(args[1][1])
   312 
   312 
   313     text = stringify(args[0][0](context, mapping, args[0][1]))
   313     text = stringify(_evalifliteral(args[0], context, mapping))
   314     if args[0][0] == runstring:
       
   315         text = stringify(runtemplate(context, mapping,
       
   316             compiletemplate(text, context)))
       
   317 
   314 
   318     right = False
   315     right = False
   319     fillchar = ' '
   316     fillchar = ' '
   320     if len(args) > 2:
   317     if len(args) > 2:
   321         fillchar = stringify(args[2][0](context, mapping, args[2][1]))
   318         fillchar = stringify(args[2][0](context, mapping, args[2][1]))