diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-04-08 08:17:55 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-04-08 08:17:55 +0000 |
commit | 36b1bcee466390f66c8760f6c0d805a97cda8a16 (patch) | |
tree | 10d38d7c9a8180e5b8e976259ed9bbb111a27dd9 /mdoc_term.c | |
parent | dddfffcee06b6b91e4f189f71f8b4863c54cf798 (diff) | |
download | mandoc-36b1bcee466390f66c8760f6c0d805a97cda8a16.tar.gz |
Fixed %T: it now correctly underlines, instead of quoting (noted by Jason McIntyre and posted on Ingo Schwarze' mandoc-todo list).
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index b3c7b9bf..625fdf90 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -93,7 +93,6 @@ static void termp_sq_post(DECL_ARGS); static void termp_ss_post(DECL_ARGS); static void termp_vt_post(DECL_ARGS); -static int termp__t_pre(DECL_ARGS); static int termp_an_pre(DECL_ARGS); static int termp_ap_pre(DECL_ARGS); static int termp_aq_pre(DECL_ARGS); @@ -188,7 +187,7 @@ static const struct termact termacts[MDOC_MAX] = { { NULL, termp____post }, /* %O */ { NULL, termp____post }, /* %P */ { NULL, termp____post }, /* %R */ - { termp__t_pre, termp____post }, /* %T */ + { termp_under_pre, termp____post }, /* %T */ { NULL, termp____post }, /* %V */ { NULL, NULL }, /* Ac */ { termp_aq_pre, termp_aq_post }, /* Ao */ @@ -2080,14 +2079,6 @@ termp____post(DECL_ARGS) /* TODO: %U. */ p->flags |= TERMP_NOSPACE; - switch (n->tok) { - case (MDOC__T): - term_word(p, "\\(rq"); - p->flags |= TERMP_NOSPACE; - break; - default: - break; - } term_word(p, n->next ? "," : "."); } @@ -2137,14 +2128,3 @@ termp_under_pre(DECL_ARGS) term_fontpush(p, TERMFONT_UNDER); return(1); } - - -/* ARGSUSED */ -static int -termp__t_pre(DECL_ARGS) -{ - - term_word(p, "\\(lq"); - p->flags |= TERMP_NOSPACE; - return(1); -} |