Add non-breaking space to fix issue #95.

This commit is contained in:
James Cole 2015-07-19 12:20:35 +02:00
parent f12dfc8a14
commit 7bb07d7f55

View File

@ -64,16 +64,16 @@ class Amount
if ($coloured === true) {
if ($amount === 0.0) {
return '<span style="color:#999">' . $symbol . ' ' . $string . '</span>';
return '<span style="color:#999">' . $symbol . '&nbsp;' . $string . '</span>';
}
if ($amount > 0) {
return '<span class="text-success">' . $symbol . ' ' . $string . '</span>';
return '<span class="text-success">' . $symbol . '&nbsp;' . $string . '</span>';
}
return '<span class="text-danger">' . $symbol . ' ' . $string . '</span>';
return '<span class="text-danger">' . $symbol . '&nbsp;' . $string . '</span>';
}
return $symbol . ' ' . $string;
return $symbol . '&nbsp;' . $string;
}
/**