Index: Support/todo.rb
===================================================================
--- Support/todo.rb	(revision 10352)
+++ Support/todo.rb	(working copy)
@@ -49,11 +49,11 @@
   tag[:rendered] = ''
 end
 
-html_head = ERB.new(File.open("#{ENV['TM_BUNDLE_SUPPORT']}/template_html_header.rhtml"), 0, '<>').result(binding)
+html_head = ERB.new(File.read("#{ENV['TM_BUNDLE_SUPPORT']}/template_html_header.rhtml"), 0, '<>').result(binding)
 
 puts html_head(:window_title => "TODO", :page_title => "TODO List", :sub_title => ENV['TM_PROJECT_DIRECTORY'], :html_head => html_head)
 
-puts ERB.new(File.open("#{ENV['TM_BUNDLE_SUPPORT']}/template_head.rhtml"), 0, '<>').result(binding)
+puts ERB.new(File.read("#{ENV['TM_BUNDLE_SUPPORT']}/template_head.rhtml"), 0, '<>').result(binding)
 
 STDOUT.flush
 
@@ -62,7 +62,7 @@
 TextMate.each_text_file do |file|
   next if (ignores != nil and file =~ /#{ignores}/) or File.symlink?(file)
   file_name = file.sub(home_dir, '~')
-  puts ERB.new(File.open("#{ENV['TM_BUNDLE_SUPPORT']}/template_update_dir.rhtml"), 0, '<>').result(binding)
+  puts ERB.new(File.read("#{ENV['TM_BUNDLE_SUPPORT']}/template_update_dir.rhtml"), 0, '<>').result(binding)
   tags.each do |tag|
     File.open(file) do |io|
       io.grep(tag[:regexp]) do |content|
@@ -81,8 +81,8 @@
         tag[:matches] << match
         count = tag[:matches].length
         total += 1
-        puts ERB.new(File.open("#{ENV['TM_BUNDLE_SUPPORT']}/template_update.rhtml"), 0, '<>').result(binding)
-        tag[:rendered] += ERB.new(File.open("#{ENV['TM_BUNDLE_SUPPORT']}/template_item.rhtml"), 0, '<>').result binding
+        puts ERB.new(File.read("#{ENV['TM_BUNDLE_SUPPORT']}/template_update.rhtml"), 0, '<>').result(binding)
+        tag[:rendered] += ERB.new(File.read("#{ENV['TM_BUNDLE_SUPPORT']}/template_item.rhtml"), 0, '<>').result binding
         STDOUT.flush
       end
     end if File.readable?(file)
@@ -90,7 +90,7 @@
 end
 
 tmpl_file = "#{ENV['TM_BUNDLE_SUPPORT']}/template_tail.rhtml"
-puts ERB.new(File.open(tmpl_file), 0, '<>').result(binding)
+puts ERB.new(File.read(tmpl_file), 0, '<>').result(binding)
 
 html_footer()
 
