mirror of https://github.com/OCA/social.git
[FIX] mail_quoted_reply: Use standard paragraph element to enter text
Without this, it is not possible to do a copy paste of a block of text into the mail composer.pull/1456/head
parent
66c35e3570
commit
776f35d566
|
@ -10,12 +10,13 @@ class MailMessage(models.Model):
|
||||||
|
|
||||||
def _prep_quoted_reply_body(self):
|
def _prep_quoted_reply_body(self):
|
||||||
return """
|
return """
|
||||||
<div>
|
<div style="margin: 0px; padding: 0px;">
|
||||||
<br/>
|
<p style="margin:0px 0 12px 0;box-sizing:border-box;">
|
||||||
<br/>
|
<br />
|
||||||
{signature}
|
</p>
|
||||||
</div>
|
{signature}
|
||||||
<br/>
|
<br />
|
||||||
|
<br />
|
||||||
<blockquote style="padding-right:0px; padding-left:5px; border-left-color: #000;
|
<blockquote style="padding-right:0px; padding-left:5px; border-left-color: #000;
|
||||||
margin-left:5px; margin-right:0px;border-left-width: 2px; border-left-style:solid">
|
margin-left:5px; margin-right:0px;border-left-width: 2px; border-left-style:solid">
|
||||||
{str_from}: {email_from}<br/>
|
{str_from}: {email_from}<br/>
|
||||||
|
@ -23,6 +24,7 @@ class MailMessage(models.Model):
|
||||||
{str_subject}: {subject}<br/>
|
{str_subject}: {subject}<br/>
|
||||||
{body}
|
{body}
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
</div>
|
||||||
""".format(
|
""".format(
|
||||||
email_from=self.email_from,
|
email_from=self.email_from,
|
||||||
date=format_datetime(self.env, self.date),
|
date=format_datetime(self.env, self.date),
|
||||||
|
|
Loading…
Reference in New Issue