From 74c2d7d97e46445b1d9dddbd147c85865fe57627 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 30 Jun 2016 09:41:52 +0000 Subject: view: improve readability of msg_reply with here-doc This should make formatting more apparent since we can rely on
 semantics.
---
 lib/PublicInbox/View.pm | 36 ++++++++++++++++++++++--------------
 1 file changed, 22 insertions(+), 14 deletions(-)

(limited to 'lib/PublicInbox')

diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 27dd1554..9d48dfcb 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 { -- cgit v1.2.3-24-ge0c7