On Thu, 2014-05-22 at 18:34 -0500, David B Funk wrote:
> After doing some experimenting with that code I came up with something that
> I'd argue is more semantically correct:
>
> # if we've got a long series of blank lines, limit them
> if (defined $start) {
> my $max_blank_lines = 20;
> my $num = $start-$cnt;
> if ($num > $max_blank_lines) {
> splice @message, $cnt+2, $num-$max_blank_lines;
> }
> undef $start;
> }
>
> IE limit a message to no more than "$max_blank_lines" in a row, not the total
> collapse of more than 11. (adjust $max_blank_lines as you see fit or make it
> a configurable parameter).
+1
Can you file a bug report or raise the topic in dev@ list? The code
change is sufficiently simple, but I want that issue discussed first.
Wonder what's the reason for that collapsing in the first place.
--
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}