Israel Herraiz | 4 Nov 2008 15:07
Picon

Re: [PATCH] Wrap text attachments

Excerpts from Nicolas's message on Nov  4, 2008 about  2 PM:
> However there is already a WRAP_LEN constant in this file, please provide
> a patch that reuse the same constant.

Find it below. I have moved the constant out of the Attachment and
Text classes, and it is now in the context of the Chunk module.

Cheers,
Israel

---
 lib/sup/message-chunks.rb |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb
index cc895f3..5b5c314 100644
--- a/lib/sup/message-chunks.rb
+++ b/lib/sup/message-chunks.rb
 <at>  <at>  -41,6 +41,8  <at>  <at>  end

 module Redwood
 module Chunk
+  WRAP_LEN = 80 # wrap messages and text attachments at this width
+
   class Attachment
     HookManager.register "mime-decode", <<EOS
 Executes when decoding a MIME attachment.
 <at>  <at>  -95,6 +97,7  <at>  <at>  EOS
        <at> lines = nil
       if text
(Continue reading)

William Morgan | 7 Nov 2008 17:55

Re: [PATCH] Wrap text attachments

Reformatted excerpts from israel.herraiz's message of 2008-11-04:
> Find it below. I have moved the constant out of the Attachment and
> Text classes, and it is now in the context of the Chunk module.

Applied, thanks!
--

-- 
William <wmorgan-sup <at> masanjin.net>

Gmane