diff options
author | Luke Kanies <luke@madstop.com> | 2008-10-03 18:30:52 -0500 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2008-10-04 10:34:29 +1000 |
commit | 614326afdbe542c9d4c480df43631c1f3cfc394a (patch) | |
tree | 6bc87d96093b0ca6b62dd8dbe93b22027a930f84 /lib/puppet/parser/lexer.rb | |
parent | 1c6d57e94196c8238a1609858bad5e5db15d1f0e (diff) | |
download | puppet-614326afdbe542c9d4c480df43631c1f3cfc394a.tar.gz puppet-614326afdbe542c9d4c480df43631c1f3cfc394a.tar.xz puppet-614326afdbe542c9d4c480df43631c1f3cfc394a.zip |
Fixing #1098 - Multiline strings now correctly increment the line count
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet/parser/lexer.rb')
-rw-r--r-- | lib/puppet/parser/lexer.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/puppet/parser/lexer.rb b/lib/puppet/parser/lexer.rb index 5dd036e52..9226434da 100644 --- a/lib/puppet/parser/lexer.rb +++ b/lib/puppet/parser/lexer.rb @@ -438,6 +438,9 @@ class Puppet::Parser::Lexer str.gsub!(/\\#{quote}/,quote) end + # Add to our line count for every carriage return in multi-line strings. + @line += str.count("\n") + return str end |