def do_center(value, width=80): """Centers the value in a field of a given width.""" return text_type(value).center(width)