From 063cb19f18edb90be94d3af43a513e098349f1da Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Sun, 7 Feb 2010 12:49:57 +0000 Subject: [PATCH] - preserve line endings type form template source --- change_log.txt | 1 + libs/sysplugins/smarty_internal_templatelexer.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index 8f93829a..83877927 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,5 @@ 07/02/2010 +- preserve line endings type form template source - API changes (see README file) 05/02/2010 diff --git a/libs/sysplugins/smarty_internal_templatelexer.php b/libs/sysplugins/smarty_internal_templatelexer.php index fb259847..a7f7729b 100644 --- a/libs/sysplugins/smarty_internal_templatelexer.php +++ b/libs/sysplugins/smarty_internal_templatelexer.php @@ -82,7 +82,8 @@ class Smarty_Internal_Templatelexer { // set instance object self::instance($this); - $this->data = preg_replace("/(\r\n|\r|\n)/", "\n", $data); +// $this->data = preg_replace("/(\r\n|\r|\n)/", "\n", $data); + $this->data = $data; $this->counter = 0; $this->line = 1; $this->smarty = $compiler->smarty;