Re: [dev] Re: message hard wrapping

15 Apr
2004
15 Apr
'04
7:30 p.m.
On 15-04-2004 at 20:41, Alessandro Ranellucci wrote:
This would do the job for us:
use Text::Wrap; (...) $Text::Wrap::columns = $NewLine; $Text::Wrap::huge = 'overflow' #This prevents us from breaking URLs $Self->{Body} = wrap( '', '', $Self->Body );
Hmmm... actually this would break quoted text since it will have longer lines because of the "> " prefix. I think that quoted text should be wrapped at $NewLine-2 instead of just $NewLine to prevent this. --Alessandro.
7795
Age (days ago)
7795
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alessandro Ranellucci