      return force_unicode(iri_to_uri(value))
  iriencode = stringfilter(iriencode)
  
  def linenumbers(value):
      "Displays text with line numbers"
      from django.utils.html import escape
      lines = value.split(u'\n')
      # Find the maximum width of the line count, for use with zero padding string format command
      width = unicode(len(unicode(len(lines))))
      for i, line in enumerate(lines):
 
</s> remove     # Find the maximum width of the line count, for use with zero padding string format command
 </s> add     # Find the maximum width of the line count, for use with zero padding
    # string format command. </s> remove     "Escapes an IRI value for use in a URL"
 </s> add     """Escapes an IRI value for use in a URL.""" </s> remove     Wraps words at specified line length
 </s> add     Wraps words at specified line length. </s> remove     "Replaces ampersands with ``&amp;`` entities"
 </s> add     """Replaces ampersands with ``&amp;`` entities.""" </s> remove     "Converts URLs in plain text into clickable links"
 </s> add     """Converts URLs in plain text into clickable links."""
    """Displays text with line numbers."""
      return force_unicode(iri_to_uri(value))
  iriencode = stringfilter(iriencode)
  
  def linenumbers(value):
    """Displays text with line numbers."""
      from django.utils.html import escape
      lines = value.split(u'\n')
      # Find the maximum width of the line count, for use with zero padding string format command
      width = unicode(len(unicode(len(lines))))
      for i, line in enumerate(lines):
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