ruby-changes:6058
From: naruse <ko1@a...>
Date: Wed, 25 Jun 2008 12:11:10 +0900 (JST)
Subject: [ruby-changes:6058] Ruby:r17568 (trunk): * lib/erb.rb (ERB::Compiler#compile): magic comment needs LF.
naruse 2008-06-25 12:10:57 +0900 (Wed, 25 Jun 2008) New Revision: 17568 Modified files: trunk/ChangeLog trunk/lib/erb.rb Log: * lib/erb.rb (ERB::Compiler#compile): magic comment needs LF. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=17568&r2=17567&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/erb.rb?r1=17568&r2=17567&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 17567) +++ ChangeLog (revision 17568) @@ -1,3 +1,7 @@ +Wed Jun 25 12:10:01 2008 NARUSE, Yui <naruse@r...> + + * lib/erb.rb (ERB::Compiler#compile): magic comment needs LF. + Wed Jun 25 09:31:11 2008 NARUSE, Yui <naruse@r...> * lib/erb.rb (ERB::Compiler#compile): output magic comment. Index: lib/erb.rb =================================================================== --- lib/erb.rb (revision 17567) +++ lib/erb.rb (revision 17568) @@ -518,7 +518,7 @@ def compile(s) out = Buffer.new(self) - out.push("# -*- coding: #{s.encoding} -*-") + out.push("# -*- coding: #{s.encoding} -*-\n") content = '' scanner = make_scanner(s) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/