From bcb360ea2bd46aaf22d1e9cbbd916c15145d2b33 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Fri, 7 Nov 2014 10:15:28 -0800 Subject: [PATCH] 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 --- .../metamta/view/PhabricatorMetaMTAMailBody.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/applications/metamta/view/PhabricatorMetaMTAMailBody.php b/src/applications/metamta/view/PhabricatorMetaMTAMailBody.php index 389549da7b..e1ef4d6373 100644 --- a/src/applications/metamta/view/PhabricatorMetaMTAMailBody.php +++ b/src/applications/metamta/view/PhabricatorMetaMTAMailBody.php @@ -79,8 +79,13 @@ final class PhabricatorMetaMTAMailBody { public function addHTMLSection($header, $html_fragment) { $this->htmlSections[] = array( - phutil_tag('div', array('style' => 'font-weight:800;'), $header), - $html_fragment, + phutil_tag( + 'div', + array(), + array( + phutil_tag('strong', array(), $header), + phutil_tag('div', array(), $html_fragment), + )), ); return $this; }