From 1762a9ea80b788f1595185cc8e798a41ec1dc8e1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 10 Aug 2022 07:40:29 +0000 Subject: www_text: add #nntp, #pop3, and #imap anchors to help HTML This will make it easier to link to these sections in 3rd-party documentation. --- lib/PublicInbox/WwwText.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/PublicInbox/WwwText.pm') diff --git a/lib/PublicInbox/WwwText.pm b/lib/PublicInbox/WwwText.pm index 369328ee..320f0d84 100644 --- a/lib/PublicInbox/WwwText.pm +++ b/lib/PublicInbox/WwwText.pm @@ -67,6 +67,9 @@ sub get_text { $txt = ascii_html($txt); } $txt = '
' . $l->linkify_2($txt) . '
'; + $txt =~ s!\bPOP3\b!POP3!; + $txt =~ s!\bNewsgroups\b!Newsgroups!; + $txt =~ s!\bIMAP\b!IMAP!; PublicInbox::WwwStream::html_oneshot($ctx, $code, \$txt); } -- cgit v1.2.3-24-ge0c7