diff options
author | 2018-08-16 23:40:19 +0000 | |
---|---|---|
committer | 2018-08-16 23:40:19 +0000 | |
commit | d991fc2c8b66fe5ca2f1f2204be1fe49af11f387 (patch) | |
tree | eb61542c99d91783b0e0500a4e9b73e6634257cd /usr.bin/mandoc/man_term.c | |
parent | Add regress coverage for CBB_add_u32(). (diff) | |
download | wireguard-openbsd-d991fc2c8b66fe5ca2f1f2204be1fe49af11f387.tar.xz wireguard-openbsd-d991fc2c8b66fe5ca2f1f2204be1fe49af11f387.zip |
implement the GNU man-ext .TQ macro in man(7),
used for example by groff_diff(7)
Diffstat (limited to 'usr.bin/mandoc/man_term.c')
-rw-r--r-- | usr.bin/mandoc/man_term.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_term.c b/usr.bin/mandoc/man_term.c index 6197f65a0c4..76133ba8bf0 100644 --- a/usr.bin/mandoc/man_term.c +++ b/usr.bin/mandoc/man_term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man_term.c,v 1.165 2018/08/14 01:26:12 schwarze Exp $ */ +/* $OpenBSD: man_term.c,v 1.166 2018/08/16 23:40:19 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> @@ -96,6 +96,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 */ @@ -582,7 +583,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; |