1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
naruse 2008-06-25 03:10:57 +00:00
parent 8eb4988a03
commit 30e263fc07
2 changed files with 5 additions and 1 deletions

View file

@ -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.

View file

@ -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)