summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-25 03:10:57 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-25 03:10:57 +0000
commit82208b8b9b85e32f54cf6ca827c4ec045ecf3557 (patch)
treed111c69b100bc0c24feb47727d2b3f3a405f3928 /lib
parenta8c0ad5b028620e01d78b520849f157d59830028 (diff)
downloadruby-82208b8b9b85e32f54cf6ca827c4ec045ecf3557.tar.gz
ruby-82208b8b9b85e32f54cf6ca827c4ec045ecf3557.tar.xz
ruby-82208b8b9b85e32f54cf6ca827c4ec045ecf3557.zip
* lib/erb.rb (ERB::Compiler#compile): magic comment needs LF.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/erb.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/erb.rb b/lib/erb.rb
index c6e912912..e1f078285 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)