diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-06 03:44:58 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-06 03:44:58 +0000 |
commit | d7a5b4c3c2f2f5da253943d18545b97fafd28a49 (patch) | |
tree | be80dcc927f48bf2ab10656d1e0e10d0e32919c8 /mdoc_html.c | |
parent | 4e045795c0b9e4b7f54bcb4057d3980e4dd9dfdf (diff) | |
download | mandoc-d7a5b4c3c2f2f5da253943d18545b97fafd28a49.tar.gz |
The .Nm macro does not only use the default name when it has no
argument, but also when the first argument is a child macro.
Arcane issue found in the FreeBSD cxgbetool(8) manual that Baptiste
Daroussin <bapt at FreeBSD> sent me long ago for a different reason.
While solving this, switch to the new technique of doing text
production in the validator, reducing code duplication in the
formatters, which also makes -Ttree output clearer.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r-- | mdoc_html.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c index 26b20ed1..a3c3cced 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -582,8 +582,6 @@ mdoc_nm_pre(MDOC_ARGS) /* FALLTHROUGH */ case ROFFT_ELEM: print_otag(h, TAG_B, "c", "Nm"); - if (n->child == NULL && meta->name != NULL) - print_text(h, meta->name); return 1; case ROFFT_BODY: print_otag(h, TAG_TD, ""); |