# HG changeset patch # User gibus # Date 1344499881 -7200 # Node ID b2a7c015362b274e08f3abc1053237acebb2d02f # Parent 33c7e20efcb74d503429b483499743ce92aac6a1 Fixed bad conversion of & to & diff -r 33c7e20efcb7 -r b2a7c015362b src/cm/converters/abi_converters.py --- a/src/cm/converters/abi_converters.py Mon Aug 06 17:51:25 2012 +0200 +++ b/src/cm/converters/abi_converters.py Thu Aug 09 10:11:21 2012 +0200 @@ -304,4 +304,6 @@ # for some reason having DOCTYPE declaration makes soup unhappy output = re.sub(r']*>)>', r'\1', unicode(soup)) + # And for some reason, & is not converted to & from time to time! + output = re.sub(r'&(?![A-Za-z]+[0-9]*;|#[0-9]+;|#x[0-9a-fA-F]+;)', r'&', output) return output