mercurial/templater.py
changeset 28345 d81437c91a26
parent 28344 ac371d4c007f
child 28346 542d200bd261
equal deleted inserted replaced
28344:ac371d4c007f 28345:d81437c91a26
   396     fill character."""
   396     fill character."""
   397     if not (2 <= len(args) <= 4):
   397     if not (2 <= len(args) <= 4):
   398         # i18n: "pad" is a keyword
   398         # i18n: "pad" is a keyword
   399         raise error.ParseError(_("pad() expects two to four arguments"))
   399         raise error.ParseError(_("pad() expects two to four arguments"))
   400 
   400 
   401     width = int(args[1][1])
   401     width = evalinteger(context, mapping, args[1],
       
   402                         # i18n: "pad" is a keyword
       
   403                         _("pad() expects an integer width"))
   402 
   404 
   403     text = stringify(args[0][0](context, mapping, args[0][1]))
   405     text = stringify(args[0][0](context, mapping, args[0][1]))
   404 
   406 
   405     right = False
   407     right = False
   406     fillchar = ' '
   408     fillchar = ' '