]> git.cworth.org Git - sup/commitdiff
drafts bugfix: saving
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 25 Aug 2007 17:41:17 +0000 (17:41 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 25 Aug 2007 17:41:17 +0000 (17:41 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@546 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/draft.rb

index e33e4791d128804448a39ef653f9d312d83e0bd2..8a303b434d17e10212f92b04ed890877c4b930b4 100644 (file)
@@ -100,11 +100,7 @@ class DraftLoader < Source
   end
 
   def raw_full_message offset
-    ret = ""
-    File.open fn_for_offset(offset) do |f|
-      ret += l until f.eof?
-    end
-    ret
+    IO.readlines(fn_for_offset(offset)).join
   end
 
   def start_offset; 0; end