diff options
author | 2017-02-06 03:41:44 +0000 | |
---|---|---|
committer | 2017-02-06 03:41:44 +0000 | |
commit | 90957cf573bc3ab94ba9843c53f19dcfc4a49875 (patch) | |
tree | b568646027e2416695ef9385e6373f908b0277f8 /usr.bin/mandoc/mdoc_html.c | |
parent | Document the behavior of -Wshadow. Add arm to the list of PIE archs (diff) | |
download | wireguard-openbsd-90957cf573bc3ab94ba9843c53f19dcfc4a49875.tar.xz wireguard-openbsd-90957cf573bc3ab94ba9843c53f19dcfc4a49875.zip |
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 'usr.bin/mandoc/mdoc_html.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_html.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c index 88b59d01440..5ea074e4d7b 100644 --- a/usr.bin/mandoc/mdoc_html.c +++ b/usr.bin/mandoc/mdoc_html.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_html.c,v 1.144 2017/02/05 21:00:18 schwarze Exp $ */ +/* $OpenBSD: mdoc_html.c,v 1.145 2017/02/06 03:41:44 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -580,8 +580,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, ""); |