Add a space when styling is missing to not clutter output

This commit is contained in:
Garvin Hicking 2015-03-16 10:45:18 +01:00
parent c249403c16
commit 863db549f7

View File

@ -183,9 +183,9 @@ class serendipity_plugin_history extends serendipity_plugin
$author = ($displayauthor) ? $e[$x]['author'] . ': ' : '';
echo '<div class="serendipity_history_info">';
if ($displayauthor)
{ echo '<span class="serendipity_history_author">' . $author . '</span>'; }
{ echo '<span class="serendipity_history_author">' . $author . ' </span>'; }
if ($displaydate)
{ echo '<span class="serendipity_history_date">' . $date . '</span>'; }
{ echo '<span class="serendipity_history_date">' . $date . ' </span>'; }
$t = ($maxlength==0 || strlen($e[$x]['title'])<=$maxlength) ?
$e[$x]['title'] :
(trim(serendipity_mb('substr', $e[$x]['title'], 0, $maxlength-3)).' [...]');