Use a non-breaking space between currency symbol and price

This commit is contained in:
Geert De Deckere 2012-02-09 09:39:07 +01:00
parent 21439c7e52
commit 5f920ffdcf
1 changed files with 2 additions and 2 deletions

View File

@ -215,10 +215,10 @@ function woocommerce_price( $price, $args = array() ) {
$return = '<span class="amount">'. $price . $currency_symbol . '</span>';
break;
case 'left_space' :
$return = '<span class="amount">'. $currency_symbol . ' ' . $price . '</span>';
$return = '<span class="amount">'. $currency_symbol . '&nbsp;' . $price . '</span>';
break;
case 'right_space' :
$return = '<span class="amount">'. $price . ' ' . $currency_symbol . '</span>';
$return = '<span class="amount">'. $price . '&nbsp;' . $currency_symbol . '</span>';
break;
endswitch;