diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-12 09:18:00 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-12 09:18:00 +0000 |
commit | 0214fa880cd249945951f08bfcf80004d5e6f43f (patch) | |
tree | 55b4a2e6eb6657ee1288f835fa1b057fa4e1451d /mdoc_term.c | |
parent | ad41f399a1fe056e9e22b214c75f2057a063ef44 (diff) | |
download | mandoc-0214fa880cd249945951f08bfcf80004d5e6f43f.tar.gz mandoc-0214fa880cd249945951f08bfcf80004d5e6f43f.tar.zst mandoc-0214fa880cd249945951f08bfcf80004d5e6f43f.zip |
`Lk' is correctly handled as CALLABLE (note groff munges nested output).
`Mt' is now CALLABLE.
Fixed missing validate/action of zero-element, non-called inline elements.
Fixed missing validate/action of nested inline element re-calls.
Fixed bogus column argv index in validator.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index 07aef10c..ec440962 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.11 2009/06/11 13:13:44 kristaps Exp $ */ +/* $Id: mdoc_term.c,v 1.12 2009/06/12 09:18:00 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -2119,17 +2119,22 @@ termp_lk_pre(DECL_ARGS) assert(node->child); n = node->child; + if (NULL == n->next) { + TERMPAIR_SETFLAG(p, pair, ttypes[TTYPE_LINK_ANCHOR]); + return(1); + } + p->flags |= ttypes[TTYPE_LINK_ANCHOR]; term_word(p, n->string); - p->flags &= ~ttypes[TTYPE_LINK_ANCHOR]; p->flags |= TERMP_NOSPACE; term_word(p, ":"); + p->flags &= ~ttypes[TTYPE_LINK_ANCHOR]; p->flags |= ttypes[TTYPE_LINK_TEXT]; - for ( ; n; n = n->next) + for (n = n->next; n; n = n->next) term_word(p, n->string); - p->flags &= ~ttypes[TTYPE_LINK_TEXT]; + p->flags &= ~ttypes[TTYPE_LINK_TEXT]; return(0); } |