aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-08-16 23:43:37 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-08-16 23:43:37 +0000
commit3f485a7ff74c3707363ed47362ccc8a7855b0f58 (patch)
tree761851956b5a0c8c76dfcf290b64ad139a16eef6 /man_term.c
parent99622f1b4d341ddc21f96b55ae3addf4013cfb97 (diff)
downloadmandoc-3f485a7ff74c3707363ed47362ccc8a7855b0f58.tar.gz
mandoc-3f485a7ff74c3707363ed47362ccc8a7855b0f58.tar.zst
mandoc-3f485a7ff74c3707363ed47362ccc8a7855b0f58.zip
implement the GNU man-ext .TQ macro in man(7),
used for example by groff_diff(7)
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/man_term.c b/man_term.c
index 5838fa19..3b3ab684 100644
--- a/man_term.c
+++ b/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.212 2018/08/14 01:27:48 schwarze Exp $ */
+/* $Id: man_term.c,v 1.213 2018/08/16 23:43:37 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -98,6 +98,7 @@ static const struct termact __termacts[MAN_MAX - MAN_TH] = {
{ pre_SH, post_SH, 0 }, /* SH */
{ pre_SS, post_SS, 0 }, /* SS */
{ pre_TP, post_TP, 0 }, /* TP */
+ { pre_TP, post_TP, 0 }, /* TQ */
{ pre_PP, NULL, 0 }, /* LP */
{ pre_PP, NULL, 0 }, /* PP */
{ pre_PP, NULL, 0 }, /* P */
@@ -584,7 +585,8 @@ pre_TP(DECL_ARGS)
p->flags |= TERMP_NOSPACE;
break;
case ROFFT_BLOCK:
- print_bvspace(p, n, mt->pardist);
+ if (n->tok == MAN_TP)
+ print_bvspace(p, n, mt->pardist);
/* FALLTHROUGH */
default:
return 1;