      return value.center(int(arg))
  center = stringfilter(center)
  
  def cut(value, arg):
      "Removes all values of arg from the given string"
      return value.replace(arg, u'')
  cut = stringfilter(cut)
  
  ###################
  # HTML STRINGS    #
 
</s> remove     "Centers the value in a field of a given width"
 </s> add     """Centers the value in a field of a given width.""" </s> remove     "Formats a date according to the given format"
 </s> add     """Formats a date according to the given format.""" </s> remove     "Adds the arg to the value"
 </s> add     """Adds the arg to the value.""" </s> remove     "Strips all [X]HTML tags"
 </s> add     """Strips all [X]HTML tags.""" </s> remove     "If value is unavailable, use given default"
 </s> add     """If value is unavailable, use given default."""
    """Removes all values of arg from the given string."""
      return value.center(int(arg))
  center = stringfilter(center)
  
  def cut(value, arg):
    """Removes all values of arg from the given string."""
      return value.replace(arg, u'')
  cut = stringfilter(cut)
  
  ###################
  # HTML STRINGS    #
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