diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-11-08 16:04:41 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-11-08 16:04:41 +0000 |
commit | 59a6140813383acbb7d485171c997edf5e745b60 (patch) | |
tree | 6cb7e4b6735d9926093e4bee32cc18b5b95c60e0 | |
parent | d4ed163570e7213e1f0de67a1a850156e8f27d12 (diff) |
generate two tag entries from list entries of the form
.It Macro tag1 ... | Macro tag2 ...
written on the TGV Toulouse-Paris
-rw-r--r-- | usr.bin/mandoc/mdoc_term.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c index 17c4d9513a1..e1987655e8c 100644 --- a/usr.bin/mandoc/mdoc_term.c +++ b/usr.bin/mandoc/mdoc_term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_term.c,v 1.231 2016/10/09 18:16:46 schwarze Exp $ */ +/* $OpenBSD: mdoc_term.c,v 1.232 2016/11/08 16:04:40 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012-2016 Ingo Schwarze <schwarze@openbsd.org> @@ -2233,7 +2233,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 && |