summaryrefslogtreecommitdiffstatshomepage
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
commit01ab75c7a0975692f32fd806b8eb8fc5d07b312e (patch)
tree301157f3ab9ed67219f7e3e21e7f2a8579a64287 /mdoc_html.c
parent5429c6324d2969b17da51f6de9f445e7bb44294b (diff)
downloadmandoc-01ab75c7a0975692f32fd806b8eb8fc5d07b312e.tar.gz
mandoc-01ab75c7a0975692f32fd806b8eb8fc5d07b312e.tar.zst
mandoc-01ab75c7a0975692f32fd806b8eb8fc5d07b312e.zip
Push capitalisation of `Bx' second argument into validator, where it belongs.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 6501b830..0641d32e 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.146 2011/01/25 15:28:56 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.147 2011/01/25 15:46:05 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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);