diff options
| author | Uwe Tews <uwe.tews@gmail.com> | 2017-11-20 04:07:51 +0100 |
|---|---|---|
| committer | Uwe Tews <uwe.tews@gmail.com> | 2017-11-20 04:07:51 +0100 |
| commit | 96fd914cc1626d1da26471a047d823c8b5d1ebc2 (patch) | |
| tree | 04082b6e09cb176749cf6889e6521f48cfc8d353 /lexer/smarty_internal_templatelexer.plex | |
| parent | 654659aadf7575f9437911602064f8440910a1a0 (diff) | |
| download | smarty-96fd914cc1626d1da26471a047d823c8b5d1ebc2.tar.gz smarty-96fd914cc1626d1da26471a047d823c8b5d1ebc2.tar.bz2 smarty-96fd914cc1626d1da26471a047d823c8b5d1ebc2.zip | |
bugfix rework of newline spacing between tag code and template text.
now again identical with Smarty2 (forum topic 26878)
Diffstat (limited to 'lexer/smarty_internal_templatelexer.plex')
| -rw-r--r-- | lexer/smarty_internal_templatelexer.plex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lexer/smarty_internal_templatelexer.plex b/lexer/smarty_internal_templatelexer.plex index fb185db1..5908eaa6 100644 --- a/lexer/smarty_internal_templatelexer.plex +++ b/lexer/smarty_internal_templatelexer.plex @@ -340,7 +340,7 @@ class Smarty_Internal_Templatelexer $this->token = Smarty_Internal_Templateparser::TP_TEXT; } comment { - preg_match("/[*]{$this->compiler->getRdelPreg()}/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); + preg_match("/[*]{$this->compiler->getRdelPreg()}[\n]?/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); if (isset($match[0][1])) { $to = $match[0][1] + strlen($match[0][0]); } else { |
