          formatstr = u'%%.%df' % abs(d)
          return formatstr % f
  
  def iriencode(value):
      "Escapes an IRI value for use in a URL"
      return force_unicode(iri_to_uri(value))
  iriencode = stringfilter(iriencode)
  
  def linenumbers(value):
      "Displays text with line numbers"
 
</s> remove     "Displays text with line numbers"
 </s> add     """Displays text with line numbers.""" </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 a value for use in a URL"
 </s> add     """Escapes a value for use in a URL.""" </s> remove     "Converts a string into all uppercase"
 </s> add     """Converts a string into all uppercase.""" </s> remove     Wraps words at specified line length
 </s> add     Wraps words at specified line length.
    """Escapes an IRI value for use in a URL."""
          formatstr = u'%%.%df' % abs(d)
          return formatstr % f
  
  def iriencode(value):
    """Escapes an IRI value for use in a URL."""
      return force_unicode(iri_to_uri(value))
  iriencode = stringfilter(iriencode)
  
  def linenumbers(value):
      "Displays text with line numbers"
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