* [PATCH] view: close <pre> in reply instructions
@ 2018-01-30 18:20 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2018-01-30 18:20 UTC (permalink / raw)
To: meta
We leave the mailto: link out when obfuscating address, so
do not stuff the "</pre>" closing tag into it. Instead,
keep the closing tag in the same context as the opening one,
making it easier to keep track of.
---
lib/PublicInbox/View.pm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 70e38a6..0de53cb 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -70,9 +70,10 @@ sub msg_reply {
* If your mail client supports setting the <b>In-Reply-To</b> header
via mailto: links, try the <a
-href="$link">mailto: link</a></pre>
+href="$link">mailto: link</a>
EOF
}
+
push @$arg, '/path/to/YOUR_REPLY';
$arg = ascii_html(join(" \\\n ", '', @$arg));
<<EOF
@@ -98,7 +99,7 @@ $info
<a
href="$se_url">$se_url</a>
-$link
+$link</pre>
EOF
}
--
EW
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-30 18:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-30 18:20 [PATCH] view: close <pre> in reply instructions 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).