summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--example.style.css2
-rw-r--r--mdoc_html.c12
-rw-r--r--mdoc_term.c22
3 files changed, 4 insertions, 32 deletions
diff --git a/example.style.css b/example.style.css
index 50fbff60..fa25d7e6 100644
--- a/example.style.css
+++ b/example.style.css
@@ -47,7 +47,7 @@ span.ref-opt { } /* Reference optionals (%O). */
span.ref-page { } /* Reference page (%P). */
span.ref-corp { } /* Reference corporate/foreign author (%Q). */
span.ref-rep { } /* Reference report (%R). */
-span.ref-title { } /* Reference title (%T). */
+span.ref-title { text-decoration: underline; } /* Reference title (%T). */
span.ref-vol { } /* Reference volume (%V). */
span.roman { font-style: normal; font-weight: normal; } /* Generic font. */
span.small { font-size: smaller; } /* Generically small (SB, SM). */
diff --git a/mdoc_html.c b/mdoc_html.c
index 802b969e..ed72cbc6 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -2222,8 +2222,6 @@ mdoc__x_pre(MDOC_ARGS)
break;
case(MDOC__T):
PAIR_CLASS_INIT(&tag[0], "ref-title");
- print_text(h, "\\(lq");
- h->flags |= HTML_NOSPACE;
break;
case(MDOC__U):
PAIR_CLASS_INIT(&tag[0], "link-ref");
@@ -2252,14 +2250,8 @@ static void
mdoc__x_post(MDOC_ARGS)
{
+ /* TODO: %U */
+
h->flags |= HTML_NOSPACE;
- switch (n->tok) {
- case (MDOC__T):
- print_text(h, "\\(rq");
- h->flags |= HTML_NOSPACE;
- break;
- default:
- break;
- }
print_text(h, n->next ? "," : ".");
}
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);
-}