From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 36E9D2018B for ; Sat, 18 Jun 2016 04:47:08 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 3/3] view: minor tweaks to reduce long lines Date: Sat, 18 Jun 2016 04:47:05 +0000 Message-Id: <20160618044705.8337-4-e@80x24.org> In-Reply-To: <20160618044705.8337-1-e@80x24.org> References: <20160618044705.8337-1-e@80x24.org> List-Id: Fold addressee fields to better delimit destinations, reduce horizontal rule
to reduce scrolling, and use spaces to indent "git send-email" example. --- lib/PublicInbox/View.pm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index e7e387d..e6d30a8 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -34,7 +34,7 @@ sub msg_html { '
' } elsif ($nr == 2) { '
' . html_footer($hdr, 1, $ctx) .
-			'
' . msg_reply($ctx, $hdr) . '
' + '' . msg_reply($ctx, $hdr); } else { undef } @@ -50,15 +50,15 @@ sub msg_reply { my ($arg, $link) = mailto_arg_link($hdr); push @$arg, '/path/to/YOUR_REPLY'; - "
". + "". "You may reply publically to this message via\n". "plain-text email using any one of the following methods:\n\n" . "* Save the following mbox file, import it into your mail client,\n" . " and reply-to-all from there: mbox\n\n" . "* Reply to all the recipients using the --to, --cc,\n" . " and --in-reply-to switches of git-send-email(1):\n\n" . - "\tgit send-email \\\n\t\t" . - join(" \\\n\t\t", @$arg ). "\n\n" . + " git send-email \\\n " . + join(" \\\n ", @$arg ). "\n\n" . qq( $se_url\n\n) . "* If your mail client supports setting the In-Reply-To" . " header\n via mailto: links, try the " . @@ -338,7 +338,9 @@ sub _msg_html_prepare { next; } } - $rv .= "$h: " . $v->as_html . "\n"; + $v = $v->as_html; + $v =~ s/(\@[^,]+,) /$1\n\t/g if ($h eq 'Cc' || $h eq 'To'); + $rv .= "$h: $v\n"; } $ctx->{-title_html} = join(' - ', @title); @@ -420,7 +422,7 @@ sub _parent_headers { } if (@refs) { - $rv .= 'References: '. join(' ', @refs) . "\n"; + $rv .= 'References: '. join("\n\t", @refs) . "\n"; } } $rv;