about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-01-30 18:17:47 +0000
committerEric Wong <e@80x24.org>2018-01-30 18:17:47 +0000
commit76afceda9d7515912c27598d1eb7fda7a9dd94d0 (patch)
tree99c23927d346e9e772a37d5abcfd436ef34f2230 /lib/PublicInbox/View.pm
parent7ee391533b51f37e949e31a26c2ad93b935c3d03 (diff)
downloadpublic-inbox-76afceda9d7515912c27598d1eb7fda7a9dd94d0.tar.gz
view: close <pre> in reply instructions
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.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r--lib/PublicInbox/View.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 70e38a6e..0de53cb2 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
 }