diff options
author | Eric Wong <e@80x24.org> | 2014-04-18 22:43:59 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-04-18 22:46:32 +0000 |
commit | 24edcaa76e03ddfba58bf0074d89e693de6eddb4 (patch) | |
tree | 0b2958f3db56627242a331235b219dc93ea73195 /lib/PublicInbox | |
parent | fefea3d7d2484ffbf433aec0dd80026aa7120e07 (diff) | |
download | public-inbox-24edcaa76e03ddfba58bf0074d89e693de6eddb4.tar.gz |
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).
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/View.pm | 2 |
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!^((?:(?:>[^\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); |