You are here

function codefilter_fix_spaces in Code Filter 5

Same name and namespace in other branches
  1. 6 codefilter.module \codefilter_fix_spaces()
  2. 7 codefilter.module \codefilter_fix_spaces()
2 calls to codefilter_fix_spaces()
codefilter_process_code in ./codefilter.module
Processes chunks of escaped code into HTML.
codefilter_process_php in ./codefilter.module
Processes chunks of escaped PHP code into HTML.

File

./codefilter.module, line 84

Code

function codefilter_fix_spaces($text) {
  return preg_replace('@ (?! )@', ' ', $text);
}