Always apply paragraph spacing, even if it is zero

This commit is contained in:
Kijin Sung 2016-04-28 01:03:52 +09:00
parent a1fc06f645
commit 40ab69f225
2 changed files with 2 additions and 2 deletions

View file

@ -212,7 +212,7 @@ class editorController extends editor
$buff[] = 'word-break: ' . ($content_word_break ?: 'normal') . '; word-wrap: break-word;';
}
$buff[] = '}';
if ($content_paragraph_spacing) $buff[] = ".xe_content p { margin: 0 0 $content_paragraph_spacing 0; }";
$buff[] = '.xe_content p { margin: 0 0 ' . ($content_paragraph_spacing ?: 0) . ' 0; }';
$buff[] = '</style>';
Context::addHtmlHeader(implode(' ', $buff));
}