[IMP] read more new line

bzr revid: fp@tinyerp.com-20130930075727-uoxqbloao2mbyw6t
This commit is contained in:
Fabien Pinckaers 2013-09-30 09:57:27 +02:00
parent 4b5d3e4a40
commit 81b28ae22d
1 changed files with 3 additions and 1 deletions

View File

@ -99,7 +99,7 @@ def html_sanitize(src, silent=True):
# HTML Cleaner
#----------------------------------------------------------
def html_email_clean(html, remove=False, shorten=False, max_length=300, expand_options=None):
def html_email_clean(html, remove=False, shorten=False, max_length=300, expand_options=None, br=False):
""" html_email_clean: clean the html by doing the following steps:
- try to strip email quotes, by removing blockquotes or having some client-
@ -261,6 +261,8 @@ def html_email_clean(html, remove=False, shorten=False, max_length=300, expand_o
None,
{'class': expand_options.get('oe_expand_span_class', 'oe_mail_expand')}
)
if br:
read_more_node.append(_create_node('br','',None, {}))
read_more_link_node = _create_node(
'a',
'read more',