From nobody Sat Feb 05 16:54:29 2022 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0559E19AD6E0 for ; Sat, 5 Feb 2022 16:54:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JrdmP6Z3lz3qjB; Sat, 5 Feb 2022 16:54:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644080069; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/oPDkBlDu+GOc1vqvepoS/La++fb3hnKcc53a5Y89wk=; b=NaMxA1UTzFj4PGXX2bYVnrq6R4Bb154Wi/WxBBvSL85T0SQURPxwSDHxmJXbPCJpeOSY7Z TzKZzEROyAZM9fqNM7+sziRu1oJX5rmj37DsezLoqty8cFycBJt4IzYo1P4BRBn3SQ0qjP YehKQkIJGCER4BIVPiOTbT8Vrpr08ekJ6sMNy7/6/3Jh7YWtwzwsfPIt1wWS82sw46Ztpn CWy7XnmUQ4TsRbCdeB1B09988SdYZa4ruNGwt6Regct48GuKDBmyaspUMvJX4LAPKazQNz p9v/zIb6b8m+dxL9VfJ4lzpn+DPU0Gvi+lmP8SFvjDJBc9bU7Hikt2Gz5ydDvQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C157023004; Sat, 5 Feb 2022 16:54:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 215GsT9x078274; Sat, 5 Feb 2022 16:54:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 215GsT0g078273; Sat, 5 Feb 2022 16:54:29 GMT (envelope-from git) Date: Sat, 5 Feb 2022 16:54:29 GMT Message-Id: <202202051654.215GsT0g078273@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Wolfram Schneider Subject: git: 71469bf91c - main - more restrict manual page reference detection List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wosch X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 71469bf91c731b378644a77c9823f2c0310ed11b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644080069; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/oPDkBlDu+GOc1vqvepoS/La++fb3hnKcc53a5Y89wk=; b=LmbWkmiSQfBp8hfc2k+25uM0LiICYRqKXOpK+VHR+QDOLlPJK3aRviLD5HdEXdXxOPPq2I c0H96duYplBY5Ur/MoNY2YJMHnuOxH31SQejXGsGDaEOTTj2sxCtkpJ0YTYSwNyWmgKzgN TOpI8oRU1XCiQk67w19D89CSHQ2o9SoXURH+PP64VKv1x5Kno2TgVYJXCZCJTEEzy8B7lO dmbfgqUwFSY5t+t77pakrUFxrNq83K/qVtHsi6VB32d9goF9HJwjGww17x1QqWC6Zi7ceY zx+p5Hu6lbZA2LGplaKSHI0aygwYsPgzjPlwXb9CdDjsn7S6+k5QmATMzZjkqA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644080069; a=rsa-sha256; cv=none; b=PbVrwmuN8Q0URUec+AyfWG53ncigDiIJTOuTXOk0SGiHtO3zzYkY8bjFmedCf00FbI7PVa 46O+rQ4S4Jc7y516c62YN5qReAt902ijEPOINDfWAsGkaPC62bWUWmPTw2MzqLLlDqyQQ+ ivOe9fn8SpCtybNq2cjm4Rdfdc+o6i/HRfydQ7h3Vhfhl21WhRrWopG2HZL/UlJnSzPmGF wS22rI5apqL76CBqeqO3RduuDoPX4lP45yVOM+OK9twjSHhQ0bylBlAOfvIahUNcAmMthp h2FaZsk6eCkTnejuuFT4IDh+9y9Q1q7117R5ph+POenhzZAy3gqW3ewDtFVJUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by wosch: URL: https://cgit.FreeBSD.org/doc/commit/?id=71469bf91c731b378644a77c9823f2c0310ed11b commit 71469bf91c731b378644a77c9823f2c0310ed11b Author: Wolfram Schneider AuthorDate: 2022-02-05 16:52:39 +0000 Commit: Wolfram Schneider CommitDate: 2022-02-05 16:52:39 +0000 more restrict manual page reference detection No white spaces between man page and brackets, e.g. gpart(8) is valid, but gpart (8) not. PR: 261706 Reported by: Graham Perrin --- website/content/en/cgi/man.cgi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/website/content/en/cgi/man.cgi b/website/content/en/cgi/man.cgi index 4734042f8c..64a68ed144 100755 --- a/website/content/en/cgi/man.cgi +++ b/website/content/en/cgi/man.cgi @@ -1616,8 +1616,11 @@ qq{Please try a $match\,; } - /^\s/ && # skip headers -s,((<[IB]>)?[\w\_\.\-]+\s*()?\s*\(([1-9ln][a-zA-Z]*)\)),&mlnk($1),oige; + + # detect references to other manual pages and set link + if (/^\s/) { # skip man headers / first line + s,((<[IB]>)?[\w\_\.\-]+()?\(([1-9ln][a-zA-Z]*)\)),&mlnk($1),oige; + } # detect E-Mail Addreses in manpages if ( $enable_mailto_links && /\@/ ) {