diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-17 11:19:45 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-17 11:19:45 +0000 |
commit | 200e43749bd89f28c28647ce1c2736de721d6de8 (patch) | |
tree | 8d3333e0d4d73c16a084a7c892e1ba7f4bd5b31f /mdoc_html.c | |
parent | 889ec81be9fc9523bf29226bdb259eb9e5d5154f (diff) | |
download | mandoc-200e43749bd89f28c28647ce1c2736de721d6de8.tar.gz mandoc-200e43749bd89f28c28647ce1c2736de721d6de8.tar.zst mandoc-200e43749bd89f28c28647ce1c2736de721d6de8.zip |
Clean-ups in -T[x]html: inline print_num(), as it was just a single
conditional; same for print_xmltype() and print_doctype(), same reason;
make bufncat() be static, as it was only being called from html.c;
have bufcat() simply call through to strlcat(). Finally, assert()
whenever we truncate.
Also rename buffmt() -> bufcat_fmt() to differentiate from buffmt_man et
al., which do not concatenate.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r-- | mdoc_html.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c index 73cf1182..b5fc053a 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.166 2011/05/14 16:28:23 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.167 2011/05/17 11:19:45 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -382,7 +382,7 @@ print_mdoc_head(MDOC_ARGS) print_gen_head(h); bufinit(h); - buffmt(h, "%s(%s)", m->title, m->msec); + bufcat_fmt(h, "%s(%s)", m->title, m->msec); if (m->arch) { bufcat(h, " ("); |