diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-15 16:24:37 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-15 16:24:37 +0000 |
commit | 619da5a7b0c931ea622bdd14c639e77e854f5ba1 (patch) | |
tree | d3dd14dbfee0e608080f6ca7729bfedd65fc0fec /mdoc_term.c | |
parent | a251336e2327592d09bff64e10e8e344a47a4374 (diff) | |
download | mandoc-619da5a7b0c931ea622bdd14c639e77e854f5ba1.tar.gz mandoc-619da5a7b0c931ea622bdd14c639e77e854f5ba1.tar.zst mandoc-619da5a7b0c931ea622bdd14c639e77e854f5ba1.zip |
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_term.c')
-rw-r--r-- | mdoc_term.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index b3485ce0..b0e3a68f 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.123 2010/05/15 16:18:23 joerg Exp $ */ +/* $Id: mdoc_term.c,v 1.124 2010/05/15 16:24:38 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -425,7 +425,7 @@ print_mdoc_head(DECL_ARGS) strlcat(buf, ")", BUFSIZ); } - snprintf(title, BUFSIZ, "%s(%d)", m->title, m->msec); + snprintf(title, BUFSIZ, "%s(%s)", m->title, m->msec); p->offset = 0; p->rmargin = (p->maxrmargin - strlen(buf) + 1) / 2; |