[BACK]Return to args.out_lint CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / man / UR

File: [cvsweb.bsd.lv] / mandoc / regress / man / UR / args.out_lint (download)

Revision 1.6, Tue Aug 2 12:02:30 2022 UTC (21 months, 1 week ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +0 -2 lines

If the body of a man(7) .MT or .UR block is empty, do not emit a warning.
Leaving the body empty is legitimate in this case if the author only
wants to display a mail address or URI without providing a link text.
Output modules already handle this correctly: terminal output shows
just the URI without an accompanying text, HTML output uses the URI
for *both* the href= attribute and as the content of the <a> element.

The documentation was also wrong and claimed that an .MT or .UR block
with an empty body would produce no output.  As explained above,
this isn't true.

Bogus warning reported by
Alejandro Colomar <alx dot manpages at gmail dot com>.

mandoc: args.in:28:11: ERROR: skipping excess arguments: UR ... second
mandoc: args.in:33:11: ERROR: skipping excess arguments: UR ... second
mandoc: args.in:23:2: WARNING: missing resource identifier, using "": UR