function _typogrify_number_span in Typogrify 7
Wrapping numbers and adding whitespace by setting margin-left in a span.
Parameters
array $hit: matcher-array from preg_replace_callback.
1 string reference to '_typogrify_number_span'
- typogrify_smart_numbers in ./
smartypants.php - Adding space in numbers for easier reading aka digit grouping.
File
- ./
smartypants.php, line 682 - SmartyPants - Smart punctuation for web sites
Code
function _typogrify_number_span($hit) {
$thbl = '<span style="margin-left:0.167em"></span>';
return _typogrify_number_replacer($hit, $thbl);
}