mhonarc-commits
[Top] [All Lists]

CVS: mhonarc/MHonArc/lib qprint.pl,2.6,2.7

2005-12-20 13:28:06
Update of mhonarc/MHonArc/lib
Modified Files:
	qprint.pl 
Log Message:
BUG #14713: Added regex to remove any end '='.  Use separate regex
from what is provided in OP of bug since this should be more efficient.
I believe Apple's Mail is creating invalid input.  I'm not sure
about the "correctness" of blindly dropping a '=' that is not followed
by a linebreak sequence.


======================================================================
FILE: mhonarc/MHonArc/lib/qprint.pl
<http://www.mhonarc.org/cgi-bin/viewcvs.cgi/*checkout*/mhonarc/MHonArc/lib/qprint.pl?rev=2.7>

<http://www.mhonarc.org/cgi-bin/viewcvs.cgi/mhonarc/MHonArc/lib/qprint.pl.diff?r1=2.6&r2=2.7&diff_format=h>
--- qprint.pl	19 May 2003 09:13:22 -0000	2.6
+++ qprint.pl	20 Dec 2005 20:27:55 -0000	2.7
@@ -38,4 +38,5 @@
     s/[^\S\r\n]*(\r?\n)/$1/g;   # remove trailing whitespace on each line
     s/\=\r?\n//g;               # remove soft linebreaks
+    s/=\Z//;                    # drop any bogus soft lb at end of text
     s/=([0-9A-Fa-f]{2})/pack('H2',$1)/ge;       # convert hex codes
     $_;                         # return result


---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-COMMITS