summaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-04-08 08:17:55 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-04-08 08:17:55 +0000
commitde239793dd69c5f9b3cf6f0ffce3c9c90af80668 (patch)
tree0e19f0d626bfcadde86e37348b86006c9cf5cc61 /mdoc_term.c
parentdb9ac84d691aa665ae1560055501f7b33c6f1bd4 (diff)
downloadmandoc-de239793dd69c5f9b3cf6f0ffce3c9c90af80668.tar.gz
mandoc-de239793dd69c5f9b3cf6f0ffce3c9c90af80668.tar.zst
mandoc-de239793dd69c5f9b3cf6f0ffce3c9c90af80668.zip
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.c24
1 files changed, 2 insertions, 22 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index fbffb6c0..7c1c6661 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.116 2010/04/06 16:27:53 kristaps Exp $ */
+/* $Id: mdoc_term.c,v 1.117 2010/04/08 08:17:55 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);
-}