PR toolchain/54715

Remove duplicate (incorrect) version of the .Lk macro, so the
earlier (fancier and functional) definition survives.

For now simply comment it out.  Sometime later this one should be
removed - but the two have been present since these macros were
first imported (1999) so leaving this visible (but removed) a
little longer shouldn't hurt.

I (believe) this one is the only duplicate of this form.

With this change the Lk macro in doc2html should work as it is designed
(but does not call other macros, and can only have punctuation following
the URL and (optional) anchor args (2nd arg is the anchor if it isn't
punctuation).

Tested by martin@
This commit is contained in:
kre 2019-11-26 08:38:19 +00:00
parent eba052fcea
commit 2dbb2da38b
1 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: doc2html,v 1.67 2016/11/22 00:36:49 kamil Exp $ .\" $NetBSD: doc2html,v 1.68 2019/11/26 08:38:19 kre Exp $
.\" .\"
.\" Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc. .\" Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc.
.\" All rights reserved. .\" All rights reserved.
@ -788,12 +788,12 @@ AT&T UNIX\\$*
. as doc-pcresult \\*[an-eol] . as doc-pcresult \\*[an-eol]
. pc-fin . pc-fin
.. ..
.de Lk .\".de Lk
. as doc-pcresult <a href="\\$1">\\$1</a> .\". as doc-pcresult <a href="\\$1">\\$1</a>
. shift .\". shift
. recurse \\$@ .\". recurse \\$@
. pc-fin .\". pc-fin
.. .\"..
.de Mt .de Mt
. as doc-pcresult <a href="mailto:\\$1">\\$1</a> . as doc-pcresult <a href="mailto:\\$1">\\$1</a>
. shift . shift