From 947d4eb09337fe0ee20f0f71c083080fdd807859 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Mon, 21 May 2007 21:47:32 +0000 Subject: [PATCH] newline patch. thanks brian. git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@408 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- lib/sup.rb | 2 +- lib/sup/person.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sup.rb b/lib/sup.rb index 11567f7..ea912f8 100644 --- a/lib/sup.rb +++ b/lib/sup.rb @@ -114,7 +114,7 @@ Hi there. It looks like one or more message sources is reporting errors. Until this is corrected, messages from these sources cannot be viewed, and new messages will not be detected. -#{broken_sources.map { |s| "Source: " + s.to_s + "\n Error: " + s.error.message.wrap(70).join("\n ")}.join('\n\n')} +#{broken_sources.map { |s| "Source: " + s.to_s + "\n Error: " + s.error.message.wrap(70).join("\n ")}.join("\n\n")} EOM #' stupid ruby-mode end diff --git a/lib/sup/person.rb b/lib/sup/person.rb index 668f774..19a3e97 100644 --- a/lib/sup/person.rb +++ b/lib/sup/person.rb @@ -23,7 +23,7 @@ class PersonManager @names[email][0] = Time.now.to_i end - def save; File.open(@fn, "w") { |f| @names.each { |email, (time, name)| f.puts "#{email}: #{time} #{name}" } }; end + def save; File.open(@fn, "w") { |f| @names.each { |email, (time, name)| f.puts "#{email}: #{time} #{name}" unless email =~ /no\-?reply/ } }; end end class Person -- 2.45.2