equal
deleted
inserted
replaced
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 = ' ' |