From 30e263fc07fb66bb0a545da5540fecaf37d8c071 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 25 Jun 2008 03:10:57 +0000 Subject: * 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 --- lib/erb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/erb.rb') 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) -- cgit v1.2.3