adding remove html comments

This commit is contained in:
Andreas Stephanides
2017-08-08 13:15:05 +02:00
parent 8a573a4ee3
commit ac378332e8

View File

@@ -112,7 +112,7 @@ class MailThread(Base):
elif filter=="first":
a=mail_txt(m[0])
a=re.sub(r'\n\s*\n',r'\n',a)
# a=re.sub(r'<!--.*-->',r'',a,flags=re.MULTILINE|re.DOTALL)
a=re.sub(r'<!--.*-->',r'',a,flags=re.MULTILINE|re.DOTALL)
a=re.sub(r'\s*>+ .*\n',r'',a)