@@ -178,37 +178,37 @@ def t(s): return p.hyper_re.sub(p._hyper_repl, s)
178178 ae = self .assertEqual
179179 ae (t ('item123123123123' ), 'item123123123123' )
180180 ae (t ('http://roundup.net/' ),
181- '<a href="http://roundup.net/">http://roundup.net/</a>' )
181+ '<a href="http://roundup.net/" rel="nofollow" >http://roundup.net/</a>' )
182182 ae (t ('<HTTP://roundup.net/>' ),
183- '<<a href="HTTP://roundup.net/">HTTP://roundup.net/</a>>' )
183+ '<<a href="HTTP://roundup.net/" rel="nofollow" >HTTP://roundup.net/</a>>' )
184184 ae (t ('<http://roundup.net/>.' ),
185- '<<a href="http://roundup.net/">http://roundup.net/</a>>.' )
185+ '<<a href="http://roundup.net/" rel="nofollow" >http://roundup.net/</a>>.' )
186186 ae (t ('<www.roundup.net>' ),
187- '<<a href="http://www.roundup.net">www.roundup.net</a>>' )
187+ '<<a href="http://www.roundup.net" rel="nofollow" >www.roundup.net</a>>' )
188188 ae (t ('(www.roundup.net)' ),
189- '(<a href="http://www.roundup.net">www.roundup.net</a>)' )
189+ '(<a href="http://www.roundup.net" rel="nofollow" >www.roundup.net</a>)' )
190190 ae (t ('foo http://msdn.microsoft.com/en-us/library/ms741540(VS.85).aspx bar' ),
191- 'foo <a href="http://msdn.microsoft.com/en-us/library/ms741540(VS.85).aspx">'
191+ 'foo <a href="http://msdn.microsoft.com/en-us/library/ms741540(VS.85).aspx" rel="nofollow" >'
192192 'http://msdn.microsoft.com/en-us/library/ms741540(VS.85).aspx</a> bar' )
193193 ae (t ('(e.g. http://en.wikipedia.org/wiki/Python_(programming_language))' ),
194- '(e.g. <a href="http://en.wikipedia.org/wiki/Python_(programming_language)">'
194+ '(e.g. <a href="http://en.wikipedia.org/wiki/Python_(programming_language)" rel="nofollow" >'
195195 'http://en.wikipedia.org/wiki/Python_(programming_language)</a>)' )
196196 ae (t ('(e.g. http://en.wikipedia.org/wiki/Python_(programming_language)).' ),
197- '(e.g. <a href="http://en.wikipedia.org/wiki/Python_(programming_language)">'
197+ '(e.g. <a href="http://en.wikipedia.org/wiki/Python_(programming_language)" rel="nofollow" >'
198198 'http://en.wikipedia.org/wiki/Python_(programming_language)</a>).' )
199199 ae (t ('(e.g. http://en.wikipedia.org/wiki/Python_(programming_language))>.' ),
200- '(e.g. <a href="http://en.wikipedia.org/wiki/Python_(programming_language)">'
200+ '(e.g. <a href="http://en.wikipedia.org/wiki/Python_(programming_language)" rel="nofollow" >'
201201 'http://en.wikipedia.org/wiki/Python_(programming_language)</a>)>.' )
202202 ae (t ('(e.g. http://en.wikipedia.org/wiki/Python_(programming_language>)).' ),
203- '(e.g. <a href="http://en.wikipedia.org/wiki/Python_(programming_language">'
203+ '(e.g. <a href="http://en.wikipedia.org/wiki/Python_(programming_language" rel="nofollow" >'
204204 'http://en.wikipedia.org/wiki/Python_(programming_language</a>>)).' )
205205 for c in '.,;:!' :
206206 # trailing punctuation is not included
207207 ae (t ('http://roundup.net/%c ' % c ),
208- '<a href="http://roundup.net/">http://roundup.net/</a>%c ' % c )
208+ '<a href="http://roundup.net/" rel="nofollow" >http://roundup.net/</a>%c ' % c )
209209 # but it's included if it's part of the URL
210210 ae (t ('http://roundup.net/%c/' % c ),
211- '<a href="http://roundup.net/%c/">http://roundup.net/%c/</a>' % (c , c ))
211+ '<a href="http://roundup.net/%c/" rel="nofollow" >http://roundup.net/%c/</a>' % (c , c ))
212212
213213'''
214214class HTMLPermissions:
0 commit comments