diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-11-08 16:04:57 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-11-08 16:04:57 +0000 |
commit | d5e61d83359928d22ab111a76a9ff8e828e6a855 (patch) | |
tree | ac4389066c2ffa2f0a947fb86e779b4d7f347bec /mdoc_term.c | |
parent | 2d6872863fef3132383ac8d39eeedd2bc85bbad1 (diff) | |
download | mandoc-d5e61d83359928d22ab111a76a9ff8e828e6a855.tar.gz mandoc-d5e61d83359928d22ab111a76a9ff8e828e6a855.tar.zst mandoc-d5e61d83359928d22ab111a76a9ff8e828e6a855.zip |
generate two tag entries from list entries of the form
.It Macro tag1 ... | Macro tag2 ...
written on the TGV Toulouse-Paris
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index d512d09a..a05e3859 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.332 2016/10/09 18:16:56 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.333 2016/11/08 16:04:57 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012-2016 Ingo Schwarze <schwarze@openbsd.org> @@ -2235,7 +2235,9 @@ termp_tag_pre(DECL_ARGS) if (n->child != NULL && n->child->type == ROFFT_TEXT && - n->prev == NULL && + (n->prev == NULL || + (n->prev->type == ROFFT_TEXT && + strcmp(n->prev->string, "|") == 0)) && (n->parent->tok == MDOC_It || (n->parent->tok == MDOC_Xo && n->parent->parent->prev == NULL && |