From 01ab75c7a0975692f32fd806b8eb8fc5d07b312e Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 25 Jan 2011 15:46:05 +0000 Subject: Push capitalisation of `Bx' second argument into validator, where it belongs. --- mdoc_html.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'mdoc_html.c') 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 * @@ -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); -- cgit v1.2.3