]> git.cworth.org Git - sup/commitdiff
newline patch. thanks brian.
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 21 May 2007 21:47:32 +0000 (21:47 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 21 May 2007 21:47:32 +0000 (21:47 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@408 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup.rb
lib/sup/person.rb

index 11567f7a4e4ed662b66b6f4d6f7c9b81a05dcbd7..ea912f875bbc522c605cc0324a39cce74a788915 100644 (file)
@@ -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
index 668f774926c06bd0dd260ba95af0da1c3668612f..19a3e97eacbf9105bc6ead6ff9d178df1abd299a 100644 (file)
@@ -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