diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/erb.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Wed Jun 25 12:10:01 2008 NARUSE, Yui <naruse@ruby-lang.org> + + * lib/erb.rb (ERB::Compiler#compile): magic comment needs LF. + Wed Jun 25 09:31:11 2008 NARUSE, Yui <naruse@ruby-lang.org> * lib/erb.rb (ERB::Compiler#compile): output magic comment. 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) |