* 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
Родитель 8eb4988a03
Коммит 30e263fc07
2 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

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

Просмотреть файл

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