Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
* [sup-devel] Use "-- " as a signature separator
@ 2010-11-09 15:24 Alvaro Herrera
  2010-11-15  4:17 ` Rich Lane
  0 siblings, 1 reply; 2+ messages in thread
From: Alvaro Herrera @ 2010-11-09 15:24 UTC (permalink / raw)
  To: sup-devel

[-- Attachment #1: Type: text/plain, Size: 258 bytes --]

This patch makes the signature separator always be dash-dash-space; the
current code is inconsistent in that one place is missing the space.
Apparently, it was removed by someone who thought it was unnecessary.

-- 
Álvaro Herrera <alvherre@alvh.no-ip.org>

[-- Attachment #2: 0002-Use-for-signature-separator.patch --]
[-- Type: application/octet-stream, Size: 797 bytes --]

From b7ed62113b5784f4bc27ac60c7921334ccb88af8 Mon Sep 17 00:00:00 2001
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: Tue, 9 Nov 2010 12:10:30 -0300
Subject: [PATCH 2/3] Use "-- " for signature separator

---
 lib/sup/modes/edit-message-mode.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/sup/modes/edit-message-mode.rb b/lib/sup/modes/edit-message-mode.rb
index 28082c3..c13c6ae 100644
--- a/lib/sup/modes/edit-message-mode.rb
+++ b/lib/sup/modes/edit-message-mode.rb
@@ -518,7 +518,7 @@ private
              AccountManager.default_account).signature
 
     if sigfn && File.exists?(sigfn)
-      ["", "--"] + File.readlines(sigfn).map { |l| l.chomp }
+      ["", "-- "] + File.readlines(sigfn).map { |l| l.chomp }
     else
       []
     end
-- 
1.7.1


[-- Attachment #3: Type: text/plain, Size: 143 bytes --]

_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-15  4:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-09 15:24 [sup-devel] Use "-- " as a signature separator Alvaro Herrera
2010-11-15  4:17 ` Rich Lane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox