Remove top padding for ALC & Post block titles

[MAILPOET-1701]
This commit is contained in:
Jan Jakeš
2019-03-06 13:11:51 +01:00
committed by M. Shull
parent 8d689f4f60
commit 51de087c01
3 changed files with 2 additions and 13 deletions

View File

@ -8,7 +8,6 @@ use MailPoet\Util\pQuery\pQuery;
class Text {
static function render($element) {
$html = $element['text'];
$padding_top = isset($element['styles']['block']['paddingTop']) ? 'padding-top:' . $element['styles']['block']['paddingTop'] : '';
// replace   with spaces
$html = str_replace(' ', ' ', $html);
$html = str_replace('\xc2\xa0', ' ', $html);
@ -19,7 +18,7 @@ class Text {
$html = self::removeLastLineBreak($html);
$template = '
<tr>
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;' . $padding_top .'">
<td class="mailpoet_text mailpoet_padded_vertical mailpoet_padded_side" valign="top" style="word-break:break-word;word-wrap:break-word;">
' . $html . '
</td>
</tr>';