      return value.rjust(int(arg))
  rjust = stringfilter(rjust)
  
  def center(value, arg):
      "Centers the value in a field of a given width"
      return value.center(int(arg))
  center = stringfilter(center)
  
  def cut(value, arg):
      "Removes all values of arg from the given string"
 
</s> remove     "Removes all values of arg from the given string"
 </s> add     """Removes all values of arg from the given string.""" </s> remove     Argument: field size
 </s> add     Argument: field size. </s> remove     Right-aligns the value in a field of a given width
 </s> add     Right-aligns the value in a field of a given width. </s> remove     Left-aligns the value in a field of a given width
 </s> add     Left-aligns the value in a field of a given width. </s> remove     Argument: field size
 </s> add     Argument: field size.
    """Centers the value in a field of a given width."""
      return value.rjust(int(arg))
  rjust = stringfilter(rjust)
  
  def center(value, arg):
    """Centers the value in a field of a given width."""
      return value.center(int(arg))
  center = stringfilter(center)
  
  def cut(value, arg):
      "Removes all values of arg from the given string"
keep keep keep keep replace keep keep keep keep keep
 Style and import fixes.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6641 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/template/defaultfilters.py