diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-25 03:10:57 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-25 03:10:57 +0000 |
commit | 30e263fc07fb66bb0a545da5540fecaf37d8c071 (patch) | |
tree | d111c69b100bc0c24feb47727d2b3f3a405f3928 /lib/erb.rb | |
parent | 8eb4988a033509c1dcf5a2f315cd92a98d8e53b6 (diff) | |
download | ruby-30e263fc07fb66bb0a545da5540fecaf37d8c071.tar.gz |
* lib/erb.rb (ERB::Compiler#compile): magic comment needs LF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/erb.rb')
-rw-r--r-- | lib/erb.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/erb.rb b/lib/erb.rb index c6e9129120..e1f0782855 100644 --- a/lib/erb.rb +++ b/lib/erb.rb @@ -518,7 +518,7 @@ class ERB def compile(s) out = Buffer.new(self) - out.push("# -*- coding: #{s.encoding} -*-") + out.push("# -*- coding: #{s.encoding} -*-\n") content = '' scanner = make_scanner(s) |