<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -637,7 +637,7 @@ module Sinatra
         file ||= caller_files.first
 
         begin
-          data = ::IO.read(file).split('__END__')[1]
+          data = ::IO.read(file).split(/^__END__$/)[1]
         rescue
           data = nil
         end</diff>
      <filename>lib/sinatra/base.rb</filename>
    </modified>
    <modified>
      <diff>@@ -87,6 +87,8 @@ class TemplatesTest &lt; Test::Unit::TestCase
   end
 end
 
+# __END__ : this is not the real end of the script.
+
 __END__
 
 @@ foo</diff>
      <filename>test/templates_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b88c0f579aabf4d32e8b6c2e3d861506e0f9a8f1</id>
    </parent>
  </parents>
  <author>
    <name>Yoji Shidara</name>
    <email>unknown</email>
  </author>
  <url>http://github.com/bmizerany/sinatra/commit/64d852ea6f30ca4264f329415426d6cd2ebc7ae6</url>
  <id>64d852ea6f30ca4264f329415426d6cd2ebc7ae6</id>
  <committed-date>2009-04-19T20:42:07-07:00</committed-date>
  <authored-date>2009-04-17T05:17:15-07:00</authored-date>
  <message>Better handling of in file templates

`__END__` in the middle of lines should not be recognized as the end of
the ruby script. Ruby only accepts the line just contain `__END__`.
Beginning/tailing whitespaces are not allowed.

Signed-off-by: Simon Rozet &lt;simon@rozet.name&gt;</message>
  <tree>2775049f50ca8b909bfc4aaf5539c3332796d5f3</tree>
  <committer>
    <name>Ryan Tomayko</name>
    <email>rtomayko@gmail.com</email>
  </committer>
</commit>
