From 03e3b5a94bff09178023ce5fce1d05a17f67e85d Mon Sep 17 00:00:00 2001 From: Vlad Date: Fri, 22 Jan 2016 20:33:56 -0500 Subject: [PATCH] - Fixes regex that formats heading tags --- lib/Newsletter/Renderer/Blocks/Text.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Newsletter/Renderer/Blocks/Text.php b/lib/Newsletter/Renderer/Blocks/Text.php index 6fdf79c36b..e6a6b80278 100644 --- a/lib/Newsletter/Renderer/Blocks/Text.php +++ b/lib/Newsletter/Renderer/Blocks/Text.php @@ -43,7 +43,6 @@ class Text { return $html; } - static function removeLastElementBreakLine($html) { return preg_replace('/([^]*)$/s', '', $html); } @@ -92,7 +91,7 @@ class Text { static function styleHeadings($html) { return preg_replace( - '/<(h[1-6])(?:.+style=\"(.*)?\")?>/', + '/<(h[1-6])(?:\s+style=\"(.*)?\")?>/', '<$1 style="margin:0;font-style:normal;font-weight:normal;$2">', $html );