From: Eric Wong Date: Wed, 10 Aug 2022 07:40:29 +0000 (+0000) Subject: www_text: add #nntp, #pop3, and #imap anchors to help HTML X-Git-Tag: v1.9.0~34 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=1762a9ea80b788f1595185cc8e798a41ec1dc8e1;hp=cab36ebd00ca72f87ff3a233ccec77aef948c926;p=public-inbox.git 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. --- 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); }