From 823a76d73da942b84074c213128a89df4f0c1e4a Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Mon, 26 Jul 2021 23:25:14 +0530 Subject: [PATCH] feat(email-tempaltes): apply nl2p filters --- src/Appwrite/Template/Template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Template/Template.php b/src/Appwrite/Template/Template.php index 7f8f36f1b..9308ee11a 100644 --- a/src/Appwrite/Template/Template.php +++ b/src/Appwrite/Template/Template.php @@ -74,7 +74,7 @@ class Template extends View if (\is_readable($this->path)) { $template = \file_get_contents($this->path); // Include template file } else if (!empty($this->content)) { - $template = $this->print($this->content); + $template = $this->print($this->content, self::FILTER_NL2P); } else { throw new Exception('"'.$this->path.'" template is not readable or not found'); }