mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Merge new line email template fix
This commit is contained in:
parent
7305c9e483
commit
3bcba163c4
@ -36,7 +36,7 @@ trait SendsEmails
|
||||
$value = $this->$field;
|
||||
|
||||
if ($value) {
|
||||
return $value;
|
||||
return preg_replace("/\r\n|\r|\n/", ' ', $value);
|
||||
}
|
||||
}
|
||||
|
||||
@ -66,7 +66,7 @@ trait SendsEmails
|
||||
}
|
||||
|
||||
if ($message) {
|
||||
$template .= "$message<p/>\r\n\r\n";
|
||||
$template .= "$message<p/>";
|
||||
}
|
||||
|
||||
return $template . '$footer';
|
||||
@ -91,6 +91,8 @@ trait SendsEmails
|
||||
$template = $this->getDefaultEmailTemplate($entityType, $message);
|
||||
}
|
||||
|
||||
$template = preg_replace("/\r\n|\r|\n/", ' ', $template);
|
||||
|
||||
// <br/> is causing page breaks with the email designs
|
||||
return str_replace('/>', ' />', $template);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user