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 CA6F02018A for ; Thu, 30 Jun 2016 09:58:36 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/2] view: improve readability of msg_reply with here-doc Date: Thu, 30 Jun 2016 09:58:33 +0000 Message-Id: <20160630095834.2723-2-e@80x24.org> In-Reply-To: <20160630095834.2723-1-e@80x24.org> References: <20160630095834.2723-1-e@80x24.org> List-Id: This should make formatting more apparent since we can rely on
 semantics.
---
 lib/PublicInbox/View.pm | 36 ++++++++++++++++++++++--------------
 1 file changed, 22 insertions(+), 14 deletions(-)

diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 27dd155..9d48dfc 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -54,21 +54,29 @@ sub msg_reply {
 
 	my ($arg, $link) = mailto_arg_link($hdr);
 	push @$arg, '/path/to/YOUR_REPLY';
+	$arg = join(" \\\n    ", '', @$arg);
+	<You may reply publically to this message via
+plain-text email using any one of the following methods:
 
-	"".
-	"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" .
-	"  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 " .
-	qq(mailto: link\n) .
-	'
'; +* Save the following mbox file, import it into your mail client, + and reply-to-all from there: mbox + +* Reply to all the recipients using the --to, --cc, + and --in-reply-to switches of git-send-email(1): + + git send-email$arg + + $se_url + +* If your mail client supports setting the In-Reply-To header + via mailto: links, try the mailto: link +EOF } sub in_reply_to { -- EW