Fix small bug for strip mode

Removing extra spaces in strip mode
This commit is contained in:
dimon-ukr 2019-11-29 15:23:12 +02:00 committed by GitHub
parent fc188a5822
commit cfd3b530ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ class Template extends Render
}
if ($strip) {
$text = preg_replace('/\s+/uS', ' ', str_replace(array("\r", "\n"), " ", $text));
$text = str_replace("> <", "><", $text);
$text = str_replace("> <", "><", trim($text));
}
$this->_body .= $text;
}