From 24edcaa76e03ddfba58bf0074d89e693de6eddb4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 18 Apr 2014 22:43:59 +0000 Subject: 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). --- lib/PublicInbox/View.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-24-ge0c7