aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-06 03:44:58 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-06 03:44:58 +0000
commitfc520e3cedbcdd86eb2b80e94cce78f98af717cf (patch)
treed8925b29052be33ff201b5a1d09de0aeba121ed7 /mdoc_html.c
parent70f435794e7d1b7082fbf988409e27476dace0bc (diff)
downloadmandoc-fc520e3cedbcdd86eb2b80e94cce78f98af717cf.tar.gz
mandoc-fc520e3cedbcdd86eb2b80e94cce78f98af717cf.tar.zst
mandoc-fc520e3cedbcdd86eb2b80e94cce78f98af717cf.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 'mdoc_html.c')
-rw-r--r--mdoc_html.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index bd434000..88bab333 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.269 2017/02/05 21:00:43 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.270 2017/02/06 03:44:58 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -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, "");