diff options
-rw-r--r-- | example.style.css | 4 | ||||
-rw-r--r-- | mdoc_html.c | 14 | ||||
-rw-r--r-- | mdoc_term.c | 24 |
3 files changed, 7 insertions, 35 deletions
diff --git a/example.style.css b/example.style.css index e6334893..fcaf64b6 100644 --- a/example.style.css +++ b/example.style.css @@ -1,4 +1,4 @@ -/* $Id: example.style.css,v 1.19 2009/11/16 09:52:47 kristaps Exp $ */ +/* $Id: example.style.css,v 1.20 2010/04/08 08:17:55 kristaps Exp $ */ div.body { font-family: monospace; min-width: 580px; width: 580px; } /* Top-most div tag. */ @@ -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 e0181c06..0ba4bea3 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.60 2010/04/07 07:49:38 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.61 2010/04/08 08:17:55 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -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 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); -} |