  urlize = stringfilter(urlize)
  
  def urlizetrunc(value, limit):
      """
      Converts URLs into clickable links, truncating URLs to the given character limit,
      and adding 'rel=nofollow' attribute to discourage spamming.
  
      Argument: Length to truncate URLs to.
      """
      from django.utils.html import urlize
      return urlize(value, trim_url_limit=int(limit), nofollow=True)
 
</s> remove     "Converts URLs in plain text into clickable links"
 </s> add     """Converts URLs in plain text into clickable links.""" </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.
    Converts URLs into clickable links, truncating URLs to the given character
    limit, and adding 'rel=nofollow' attribute to discourage spamming.
  urlize = stringfilter(urlize)
  
  def urlizetrunc(value, limit):
      """
    Converts URLs into clickable links, truncating URLs to the given character
    limit, and adding 'rel=nofollow' attribute to discourage spamming.
    Converts URLs into clickable links, truncating URLs to the given character
    limit, and adding 'rel=nofollow' attribute to discourage spamming.
  
      Argument: Length to truncate URLs to.
      """
      from django.utils.html import urlize
      return urlize(value, trim_url_limit=int(limit), nofollow=True)
keep keep keep keep replace 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