diff --git a/template.php b/template.php index 2faa4e34..431d6072 100644 --- a/template.php +++ b/template.php @@ -275,7 +275,7 @@ function parse($text) { if (preg_match('/^(.{0,'.$w.'}?)<(\/?)(?:F3:)?'. '('.$this->tags.')\b((?:\s+[\w.:@!\-]+'. '(?:\h*=\h*(?:"(?:.*?)"|\'(?:.*?)\'))?|'. - '\h*\{\{.+?\}\})*)\h*(\/?)>/is', + '\h*\{\{.+?\}\})*)\s*(\/?)>/is', substr($text,$ptr),$match)) { if (strlen($tmp) || isset($match[1])) $tree[]=$tmp.$match[1];