* [PATCH] view: relax line break detection
@ 2014-09-22 18:59 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2014-09-22 18:59 UTC (permalink / raw)
To: meta; +Cc: Eric Wong
Often times any succession of "---" denotes the rest of the
message is too long to review at once.
---
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 028c276..3860d6e 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -111,7 +111,7 @@ sub index_entry {
# drop the remainder of git patches, they're usually better
# to review when the full message is viewed
- $s =~ s!^---\n.*\z!!ms and $more = 'more...';
+ $s =~ s!^---+\n.*\z!!ms and $more = 'more...';
# Drop signatures
$s =~ s/^-- \n.*\z//ms and $more = 'more...';
--
EW
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-09-22 18:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-22 18:59 [PATCH] view: relax line break detection Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).