commit cd4316b827b38173072d0873b40c5cb1c9d223ad
parent f3671fb0ad7082e52f3f96f8812a0d6fb1e35a9e
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Wed, 16 Jan 2008 14:20:08 -0800
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
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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