summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-25 15:46:05 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-25 15:46:05 +0000
commite715d2a075efaec805b4b67c6fd39ab481b6327a (patch)
tree0a8110660faf085fbcb127e698040460d4720dae /mdoc_html.c
parent643af1edaf881ac08f66cfdf17d2807aa0629a3d (diff)
downloadmandoc-e715d2a075efaec805b4b67c6fd39ab481b6327a.tar.gz
Push capitalisation of `Bx' second argument into validator, where it belongs.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index a82edaa4..5accf6f8 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -833,7 +833,6 @@ static int
mdoc_bx_pre(MDOC_ARGS)
{
struct htmlpair tag;
- char buf[3];
PAIR_CLASS_INIT(&tag, "unix");
print_otag(h, TAG_SPAN, 1, &tag);
@@ -848,14 +847,10 @@ 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, buf);
+ print_text(h, "-");
h->flags |= HTML_NOSPACE;
- print_text(h, n->string + 1);
+ print_text(h, n->string);
}
return(0);