summaryrefslogtreecommitdiffstats
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-08-02 12:02:28 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-08-02 12:02:28 +0000
commite0e303760d9c53bc1d18fa5b1e82ad7a15422677 (patch)
tree25e67930c8c1e47111c5a5fae2571aebf270768d /mandoc.1
parented4855c380c2b739b927e6c1fc20375e60583d25 (diff)
downloadmandoc-e0e303760d9c53bc1d18fa5b1e82ad7a15422677.tar.gz
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>.
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.14
1 files changed, 1 insertions, 3 deletions
diff --git a/mandoc.1 b/mandoc.1
index 8ffcab71..ccf39b48 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1473,10 +1473,8 @@ A
.Ic \&Bl ,
.Ic \&D1 ,
.Ic \&Dl ,
-.Ic \&MT ,
-.Ic \&RS ,
or
-.Ic \&UR
+.Ic \&RS
block contains nothing in its body and will produce no output.
.It Sy "empty argument, using 0n"
.Pq mdoc