You are here

function _typogrify_number_just_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_just_span'
typogrify_smart_numbers in ./smartypants.php
Adding space in numbers for easier reading aka digit grouping.

File

./smartypants.php, line 693
SmartyPants - Smart punctuation for web sites

Code

function _typogrify_number_just_span($hit) {
  return _typogrify_number_replacer($hit, '');
}