summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-25 15:28:56 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-25 15:28:56 +0000
commit643af1edaf881ac08f66cfdf17d2807aa0629a3d (patch)
treec85a14503ed0f42d4c71e00c8a64d2bb317c866e /mdoc_html.c
parent99f9e0ced799039092a15e576a2ba9f04fff9d0a (diff)
downloadmandoc-643af1edaf881ac08f66cfdf17d2807aa0629a3d.tar.gz
Properly uppercase the first-letter of the `Bx' second argument.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 9d83553d..a82edaa4 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -832,7 +832,8 @@ mdoc_xx_pre(MDOC_ARGS)
static int
mdoc_bx_pre(MDOC_ARGS)
{
- struct htmlpair tag;
+ struct htmlpair tag;
+ char buf[3];
PAIR_CLASS_INIT(&tag, "unix");
print_otag(h, TAG_SPAN, 1, &tag);
@@ -847,10 +848,14 @@ mdoc_bx_pre(MDOC_ARGS)
}
if (NULL != (n = n->next)) {
+ buf[0] = '-';
+ buf[1] = toupper((unsigned char)*n->string);
+ buf[2] = '\0';
+
h->flags |= HTML_NOSPACE;
- print_text(h, "-");
+ print_text(h, buf);
h->flags |= HTML_NOSPACE;
- print_text(h, n->string);
+ print_text(h, n->string + 1);
}
return(0);