From: Eric Wong Date: Fri, 18 Apr 2014 22:43:59 +0000 (+0000) Subject: view: fix regression in standalone /^>$/ lines X-Git-Tag: v1.0.0~1235 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=24edcaa76e03ddfba58bf0074d89e693de6eddb4;p=public-inbox.git view: fix regression in standalone /^>$/ lines The lack of trailing whitespace in quote prefixes threw us off and cause t/view to fail. This failure was caused by commit fefea3d7d2484ffbf433aec0dd80026aa7120e07 ("ensure per-message short quotes do not get too long") and not caught before pushing because I failed to run "make", only "prove" (and not even "prove -l" :x). --- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index ed7d0b66..946ea2e5 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -92,7 +92,7 @@ sub add_text_body_short { my $s = ascii_html($enc->decode($part->body)); $s =~ s!^((?:(?:>[^\n]*)\n)+)! my $cur = $1; - my @lines = split(/\n(?:>\s*)?/, $cur); + my @lines = split(/\n/, $cur); if (@lines > MAX_INLINE_QUOTED) { # show a short snippet of quoted text $cur = join(' ', @lines);