- preserve line endings type form template source

This commit is contained in:
Uwe.Tews
2010-02-07 12:49:57 +00:00
parent ae49fe099b
commit 063cb19f18
2 changed files with 3 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
07/02/2010 07/02/2010
- preserve line endings type form template source
- API changes (see README file) - API changes (see README file)
05/02/2010 05/02/2010

View File

@@ -82,7 +82,8 @@ class Smarty_Internal_Templatelexer
{ {
// set instance object // set instance object
self::instance($this); 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->counter = 0;
$this->line = 1; $this->line = 1;
$this->smarty = $compiler->smarty; $this->smarty = $compiler->smarty;