  wordcount = stringfilter(wordcount)
  
  def wordwrap(value, arg):
      """
      Wraps words at specified line length
  
      Argument: number of characters to wrap the text at.
      """
      from django.utils.text import wrap
      return wrap(value, int(arg))
 
</s> remove     "Returns the number of words"
 </s> add     """Returns the number of words.""" </s> remove     Argument: Number of words to truncate after
 </s> add     Argument: Number of words to truncate after. </s> remove     Argument: Number of words to truncate after
 </s> add     Argument: Number of words to truncate after. </s> remove     Truncates HTML after a certain number of words
 </s> add     Truncates HTML after a certain number of words. </s> remove     Truncates a string after a certain number of words
 </s> add     Truncates a string after a certain number of words.
    Wraps words at specified line length.
  wordcount = stringfilter(wordcount)
  
  def wordwrap(value, arg):
      """
    Wraps words at specified line length.
  
      Argument: number of characters to wrap the text at.
      """
      from django.utils.text import wrap
      return wrap(value, int(arg))
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