summaryrefslogtreecommitdiffstats
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-25 23:25:53 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-25 23:25:53 +0000
commitcd5c755deee14b76b005ec3913de8e1b13e13580 (patch)
tree5d257e644670ede849fcbf76ca30ba633c2ef4c9 /mdoc_term.c
parent72dde2cbfd108b1a17101a36f17ed4abd72231db (diff)
downloadmandoc-cd5c755deee14b76b005ec3913de8e1b13e13580.tar.gz
Implement schwarze@'s much more elegant version of my %T/%J fix.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 7a4a7fa5..f96b9721 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -2148,8 +2148,8 @@ termp__t_post(DECL_ARGS)
* If we're in an `Rs' and there's a journal present, then quote
* us instead of underlining us (for disambiguation).
*/
- if (n->parent && MDOC_Rs == n->parent->tok &&
- n->parent->norm->Rs.titlejournal)
+ if (n->parent && MDOC_Rs == n->parent->tok &&
+ n->parent->norm->Rs.child_J)
termp_quote_post(p, pair, m, n);
termp____post(p, pair, m, n);
@@ -2165,7 +2165,7 @@ termp__t_pre(DECL_ARGS)
* us instead of underlining us (for disambiguation).
*/
if (n->parent && MDOC_Rs == n->parent->tok &&
- n->parent->norm->Rs.titlejournal)
+ n->parent->norm->Rs.child_J)
return(termp_quote_pre(p, pair, m, n));
term_fontpush(p, TERMFONT_UNDER);