From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 1C6DD1F59D for ; Wed, 10 Aug 2022 07:40:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1660117231; bh=O71w+3xGy/ZKSxuDLMk4bNOstZ3rhbtuS7DFaWvdA0c=; h=From:To:Subject:Date:In-Reply-To:References:From; b=5BGskYcvMPN64Ve1znoW4+yPSz9CsUVeYMM3gevropmTFbf7rE2ewDcdbOjFNkq0M CKcP4hSfBt3IzQ4Czl3srNZzj2AtILLEhmd/I4bMFWu83UUttJAHOG0qeVRBbHVWu2 M8caD0Bmb6Qu+krRLaqry8oPTDjXtIt1fYy9ZhHU= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/3] www_text: add #nntp, #pop3, and #imap anchors to help HTML Date: Wed, 10 Aug 2022 07:40:29 +0000 Message-Id: <20220810074031.19639-2-e@80x24.org> In-Reply-To: <20220810074031.19639-1-e@80x24.org> References: <20220810074031.19639-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This will make it easier to link to these sections in 3rd-party documentation. --- lib/PublicInbox/WwwText.pm | 3 +++ 1 file changed, 3 insertions(+) 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); }