mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-26 23:40:57 +01:00
Fix HTML email section breaks
Summary: Fixes T6481. Provides better section handling. Test Plan: Test an email with multiple sections, multiple mail platforms. {F231022} Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T6481 Differential Revision: https://secure.phabricator.com/D10811
This commit is contained in:
parent
622eaac9ed
commit
bcb360ea2b
1 changed files with 7 additions and 2 deletions
|
@ -79,8 +79,13 @@ final class PhabricatorMetaMTAMailBody {
|
||||||
|
|
||||||
public function addHTMLSection($header, $html_fragment) {
|
public function addHTMLSection($header, $html_fragment) {
|
||||||
$this->htmlSections[] = array(
|
$this->htmlSections[] = array(
|
||||||
phutil_tag('div', array('style' => 'font-weight:800;'), $header),
|
phutil_tag(
|
||||||
$html_fragment,
|
'div',
|
||||||
|
array(),
|
||||||
|
array(
|
||||||
|
phutil_tag('strong', array(), $header),
|
||||||
|
phutil_tag('div', array(), $html_fragment),
|
||||||
|
)),
|
||||||
);
|
);
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue