~openerp-dev/openobject-addons/7.0-mail_issues-fix-adh-1168388

« back to all changes in this revision

Viewing changes to mail/mail_followers.py

  • Committer: Anand Dharampuriya(OpenERP)
  • Date: 2014-06-05 08:57:07 UTC
  • Revision ID: adh@tinyerp.com-20140605085707-colagtssool34bly
[FIX] Mail: Solve Blank lines in signature and body are erased if you send a message 

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
            # body_html = tools.append_content_to_html(body_html, quote_context, plaintext=False)
152
152
        signature = msg.author_id and msg.author_id.user_ids and msg.author_id.user_ids[0].signature or ''
153
153
        if signature:
154
 
            body_html = tools.append_content_to_html(body_html, signature, plaintext=True, container_tag='div')
 
154
            body_html = tools.append_content_to_html(body_html, signature, plaintext=True, preserve=True, container_tag='div')
155
155
 
156
156
        # email_from: partner-user alias or partner email or mail.message email_from
157
157
        if msg.author_id and msg.author_id.user_ids and msg.author_id.user_ids[0].alias_domain and msg.author_id.user_ids[0].alias_name: