databind
vitalif 2013-04-22 22:14:56 +00:00 committed by Vitaliy Filippov
parent 1b51e5c08e
commit f216a5920a
1 changed files with 1 additions and 1 deletions

View File

@ -667,7 +667,7 @@ class VMXTemplateLexer
$str = substr($this->code, $this->pos, $code_pos-$this->pos);
if ($this->options->eat_code_line)
{
$str = preg_replace('/\n[ \t]*$/s', '', $str);
$str = preg_replace('/\n[ \t]*$/s', "\n", $str);
}
$r = array('literal', "'".addcslashes($str, "'\\")."'");
$this->lineno += substr_count($r[1], "\n");