summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-15 16:24:37 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-15 16:24:37 +0000
commit2f01ab1363bf6ab718b3fb6370fc6735e3e8bc02 (patch)
treec8023c62b35846d97b0c170d0fc13e02159140a7 /mdoc_html.c
parent6e9d908aceac4cb4aaf9a8d2bdeab9efea064b7b (diff)
downloadmandoc-2f01ab1363bf6ab718b3fb6370fc6735e3e8bc02.tar.gz
LIBRARY can also occur in section 9.
All manual sections (unknown, 3p, 3f, etc.) correctly handled by -mdoc. Useful warning printed if unknown manual section. Checking for manual sections (e.g., LIBRARY) checks only first character, so 3p, 3f, etc. are free.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index bb109efa..f1eb6ce5 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -387,7 +387,7 @@ print_mdoc_head(MDOC_ARGS)
print_gen_head(h);
bufinit(h);
- buffmt(h, "%s(%d)", m->title, m->msec);
+ buffmt(h, "%s(%s)", m->title, m->msec);
if (m->arch) {
bufcat(h, " (");
@@ -509,7 +509,7 @@ mdoc_root_pre(MDOC_ARGS)
}
(void)snprintf(title, BUFSIZ - 1,
- "%s(%d)", m->title, m->msec);
+ "%s(%s)", m->title, m->msec);
/* XXX: see note in mdoc_root_post() about divs. */