aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitc9e80a007b446796d182d2e716659df296725f5a (patch)
tree6a2b05142154f0326df913e6b3b8ca548e1d9eba /mdoc_term.c
parent97ea338f64152142a27642d6ee10c3a0ae63be1e (diff)
downloadmandoc-c9e80a007b446796d182d2e716659df296725f5a.tar.gz
mandoc-c9e80a007b446796d182d2e716659df296725f5a.tar.zst
mandoc-c9e80a007b446796d182d2e716659df296725f5a.zip
Implement schwarze@'s much more elegant version of my %T/%J fix.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 55d7ef4b..f6a9a0fc 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.203 2010/12/25 13:50:37 kristaps Exp $ */
+/* $Id: mdoc_term.c,v 1.204 2010/12/25 23:25:53 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -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);