If a string ends with a <br> and a single word, widont does nothing:
>>> widont('blah<br>blah')
'blah<br>blah'
This makes sense to me. But if a string ends with a <br>\n, widont replaces the newline with a :
>>> widont('blah<br>\nblah')
'blah<br> blah'
This doesn't seem right. While the first would render:
blah
blah
the second would render:
blah
blah
If a string ends with a
<br>and a single word,widontdoes nothing:This makes sense to me. But if a string ends with a
<br>\n,widontreplaces the newline with a :This doesn't seem right. While the first would render:
the second would render: