Django

Code

Show
Ignore:
Timestamp:
06/26/08 00:07:13 (2 months ago)
Author:
adrian
Message:

Fixed #7542 -- Fixed bug in urlize where it was appending 'http://' to the link text. Thanks for the patch and tests, devin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/regressiontests/defaultfilters/tests.py

    r7701 r7755  
    151151 
    152152>>> urlizetrunc(u'http://www.google.co.uk/search?hl=en&q=some+long+url&btnG=Search&meta=', 20) 
    153 u'<a href="http://www.google.co.uk/search?hl=en&q=some+long+url&btnG=Search&meta=" rel="nofollow">http://www.google....</a>' 
     153u'<a href="http://www.google.co.uk/search?hl=en&q=some+long+url&btnG=Search&meta=" rel="nofollow">http://www.google...</a>' 
    154154 
    155155>>> urlizetrunc('http://www.google.co.uk/search?hl=en&q=some+long+url&btnG=Search&meta=', 20) 
     
    175175 
    176176>>> urlize('www.google.com')  
    177 u'<a href="http://www.google.com" rel="nofollow">http://www.google.com</a>' 
     177u'<a href="http://www.google.com" rel="nofollow">www.google.com</a>' 
    178178 
    179179>>> urlize('djangoproject.org')  
    180 u'<a href="http://djangoproject.org" rel="nofollow">http://djangoproject.org</a>' 
     180u'<a href="http://djangoproject.org" rel="nofollow">djangoproject.org</a>' 
    181181 
    182182>>> urlize('info@djangoproject.org')