mirror of https://tildegit.org/sbgodin/HtmGem
Fixes a bug about null by ref variable
parent
1bc2e3b2bc
commit
b5083aaabd
|
@ -319,6 +319,7 @@ class GemtextTranslate_html {
|
|||
|
||||
protected static function spacesCompress(&$text) {
|
||||
# Replaces several spaces (0x20) by only one
|
||||
if (empty($text)) $text = "";
|
||||
$text = preg_replace("/ +/", " ", $text);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue