diff options
author | Eric Wong <e@80x24.org> | 2014-08-28 01:33:43 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-08-28 02:47:11 +0000 |
commit | b01b542b95d10ce9d782ceb27412b9eac873f1d8 (patch) | |
tree | c5a2d4a878b7c04083f5505a025faae47e707fc5 | |
parent | 7e9b0dd98feddd8e9bdd530912ed9e4162abe4ea (diff) | |
download | public-inbox-b01b542b95d10ce9d782ceb27412b9eac873f1d8.tar.gz |
12 lines is half an 80x24 terminal, so it is probably a reasonable amount to quote. Often 5 lines was not enough for context. This feature is mainly to reduce scrolling necessary to view pages.
-rw-r--r-- | lib/PublicInbox/View.pm | 2 | ||||
-rw-r--r-- | t/feed.t | 9 | ||||
-rw-r--r-- | t/view.t | 9 |
3 files changed, 18 insertions, 2 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 0d974281..27943391 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -11,7 +11,7 @@ use Email::MIME::ContentType qw/parse_content_type/; require POSIX; # TODO: make these constants tunable -use constant MAX_INLINE_QUOTED => 5; +use constant MAX_INLINE_QUOTED => 12; # half an 80x24 terminal use constant MAX_TRUNC_LEN => 72; use constant PRE_WRAP => '<pre style="white-space:pre-wrap">'; @@ -31,6 +31,15 @@ Date: Thu, 01 Jan 1970 00:00:00 +0000 > I quote to much > I quote to much > I quote to much +> I quote to much +> I quote to much +> I quote to much +> I quote to much +> I quote to much +> I quote to much +> I quote to much +> I quote to much +> I quote to much msg $i @@ -18,7 +18,14 @@ OK > We generate links to a separate full page where quoted-text is inline. > This is > -> Currently 5 lines +> Currently 12 lines +> See MAX_INLINE_QUOTED +> See MAX_INLINE_QUOTED +> See MAX_INLINE_QUOTED +> See MAX_INLINE_QUOTED +> See MAX_INLINE_QUOTED +> See MAX_INLINE_QUOTED +> See MAX_INLINE_QUOTED > See MAX_INLINE_QUOTED hello world |