From: Alan Knowles Date: Thu, 17 Nov 2011 09:51:47 +0000 (+0800) Subject: JsTemplate.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=88976db47c8cd460137ce1fb13ed2a2eb45e19db JsTemplate.php --- diff --git a/JsTemplate.php b/JsTemplate.php index 8ab063ff..09a86ba1 100644 --- a/JsTemplate.php +++ b/JsTemplate.php @@ -94,7 +94,7 @@ class Pman_Core_JsTemplate extends Pman { $contents = file_get_contents($fn); - $ar = preg_split('/(\{[^\}]+})/', $contents, -1, PREG_SPLIT_DELIM_CAPTURE); + $ar = preg_split('/(\{[^\\n}]+})/', $contents, -1, PREG_SPLIT_DELIM_CAPTURE);