Merge pull request #603 from GeertDD/price_nbsp

Use a non-breaking space between currency symbol and price
This commit is contained in:
Mike Jolley 2012-02-09 01:25:39 -08:00
commit 94c08c9c50
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;