You can clone with
HTTPS or Subversion.
Originally on 2012-03-02
Ticket #764 was trying to introduce nicer handling of lists and links markup in email notifications but some issues remain (or have been introduced).
For example when processing a list, one gets:
from invenio.webcomment_washer import *
washer = EmailWasher()
a = '<ol><li>foo</li><li>bar</li></ol>'
1. foo2. bar
while we would expect the following output:
It works however if '\n' are already inserted into the source string:
b = '''<ol><li>foo</li>
Also when dealing with links:
c = '<a href="http://foo">bar</a>'
we would expect instead the following output:
It works however nicely when the the link label is identified as a URL:
d = '<a href="http://foo">http://foo</a>'
e = '<a href="http://foo">http://bar</a>'
Fix the handling of such tags and add the above example as unit tests (as well as other unit tests).
Duplicate of #845