From: wmorgan Date: Sat, 25 Aug 2007 17:41:17 +0000 (+0000) Subject: drafts bugfix: saving X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=d3e384627eec5e8910c1788518bbbb8eb0543306;p=sup drafts bugfix: saving git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@546 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/draft.rb b/lib/sup/draft.rb index e33e479..8a303b4 100644 --- a/lib/sup/draft.rb +++ b/lib/sup/draft.rb @@ -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