diff --git a/lib/Newsletter/Renderer/Blocks/Text.php b/lib/Newsletter/Renderer/Blocks/Text.php index 0cb1390280..ae349c6b35 100644 --- a/lib/Newsletter/Renderer/Blocks/Text.php +++ b/lib/Newsletter/Renderer/Blocks/Text.php @@ -120,8 +120,8 @@ class Text { $lineBreaks; if ($paragraph->hasClass(PostContentManager::WP_POST_CLASS)) { $paragraph->removeClass(PostContentManager::WP_POST_CLASS); - // if this element is followed by a paragraph, add double line breaks - $lineBreaks = ($nextElement && preg_match('/

getOuterText())) ? + // if this element is followed by a paragraph or heading, add double line breaks + $lineBreaks = ($nextElement && preg_match('/<(p|h[1-6]{1})/i', $nextElement->getOuterText())) ? '

' : $lineBreaks; }