From d5e61d83359928d22ab111a76a9ff8e828e6a855 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 8 Nov 2016 16:04:57 +0000 Subject: generate two tag entries from list entries of the form .It Macro tag1 ... | Macro tag2 ... written on the TGV Toulouse-Paris --- mdoc_term.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mdoc_term.c') 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 * Copyright (c) 2010, 2012-2016 Ingo Schwarze @@ -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 && -- cgit v1.2.3-56-ge451