]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: close <pre> in reply instructions
authorEric Wong <e@80x24.org>
Tue, 30 Jan 2018 18:17:47 +0000 (18:17 +0000)
committerEric Wong <e@80x24.org>
Tue, 30 Jan 2018 18:17:47 +0000 (18:17 +0000)
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

index 70e38a6e567957145e530e34c7542d9e0fb8846f..0de53cb22ec7ba2c865caf253005ad33f089d853 100644 (file)
@@ -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
 }