diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-25 15:46:05 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-25 15:46:05 +0000 |
commit | e715d2a075efaec805b4b67c6fd39ab481b6327a (patch) | |
tree | 0a8110660faf085fbcb127e698040460d4720dae /mdoc_term.c | |
parent | 643af1edaf881ac08f66cfdf17d2807aa0629a3d (diff) | |
download | mandoc-e715d2a075efaec805b4b67c6fd39ab481b6327a.tar.gz |
Push capitalisation of `Bx' second argument into validator, where it belongs.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index 221a6424..703f2d06 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1677,7 +1677,6 @@ termp_bd_post(DECL_ARGS) static int termp_bx_pre(DECL_ARGS) { - char buf[3]; if (NULL != (n = n->child)) { term_word(p, n->string); @@ -1689,14 +1688,10 @@ termp_bx_pre(DECL_ARGS) } if (NULL != (n = n->next)) { - buf[0] = '-'; - buf[1] = toupper((unsigned char)*n->string); - buf[2] = '\0'; - p->flags |= TERMP_NOSPACE; - term_word(p, buf); + term_word(p, "-"); p->flags |= TERMP_NOSPACE; - term_word(p, n->string + 1); + term_word(p, n->string); } return(0); |