diff --git a/lib-htmgem.inc.php b/lib-htmgem.inc.php index dea91a6..2c31405 100644 --- a/lib-htmgem.inc.php +++ b/lib-htmgem.inc.php @@ -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); }