mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 11:54:26 +02:00
- preserve line endings type form template source
This commit is contained in:
@@ -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
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user