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:
parent
8eb4988a03
commit
30e263fc07
2 changed files with 5 additions and 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>
|
Wed Jun 25 09:31:11 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* lib/erb.rb (ERB::Compiler#compile): output magic comment.
|
* lib/erb.rb (ERB::Compiler#compile): output magic comment.
|
||||||
|
|
|
@ -518,7 +518,7 @@ class ERB
|
||||||
|
|
||||||
def compile(s)
|
def compile(s)
|
||||||
out = Buffer.new(self)
|
out = Buffer.new(self)
|
||||||
out.push("# -*- coding: #{s.encoding} -*-")
|
out.push("# -*- coding: #{s.encoding} -*-\n")
|
||||||
|
|
||||||
content = ''
|
content = ''
|
||||||
scanner = make_scanner(s)
|
scanner = make_scanner(s)
|
||||||
|
|
Loading…
Add table
Reference in a new issue