about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-04-18 22:43:59 +0000
committerEric Wong <e@80x24.org>2014-04-18 22:46:32 +0000
commit24edcaa76e03ddfba58bf0074d89e693de6eddb4 (patch)
tree0b2958f3db56627242a331235b219dc93ea73195
parentfefea3d7d2484ffbf433aec0dd80026aa7120e07 (diff)
downloadpublic-inbox-24edcaa76e03ddfba58bf0074d89e693de6eddb4.tar.gz
view: fix regression in standalone /^&gt;$/ 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).
-rw-r--r--lib/PublicInbox/View.pm2
1 files changed, 1 insertions, 1 deletions
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!^((?:(?:&gt;[^\n]*)\n)+)!
                 my $cur = $1;
-                my @lines = split(/\n(?:&gt;\s*)?/, $cur);
+                my @lines = split(/\n/, $cur);
                 if (@lines > MAX_INLINE_QUOTED) {
                         # show a short snippet of quoted text
                         $cur = join(' ', @lines);