From: William Morgan Date: Wed, 16 Jan 2008 22:20:08 +0000 (-0800) Subject: grab non-terminal blank lines as part of quotes X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=cd4316b827b38173072d0873b40c5cb1c9d223ad;p=sup grab non-terminal blank lines as part of quotes This helps with those irritating mailers that do something like this: Bob said: > quoted text > quoted text --- diff --git a/lib/sup/message.rb b/lib/sup/message.rb index 85e2760..c487ae3 100644 --- a/lib/sup/message.rb +++ b/lib/sup/message.rb @@ -439,7 +439,7 @@ private when :quote newstate = nil - if line =~ QUOTE_PATTERN || line =~ QUOTE_START_PATTERN #|| line =~ /^\s*$/ + if line =~ QUOTE_PATTERN || (line =~ /^\s*$/ && nextline =~ QUOTE_PATTERN) chunk_lines << line elsif line =~ SIG_PATTERN && (lines.length - i) < MAX_SIG_DISTANCE newstate = :sig