summaryrefslogtreecommitdiffstats
path: root/man_macro.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
commitf6077aba4f0b9ece3ceff820c0c651d148df1a37 (patch)
treefc5349cb86618e9f0e4d56e8d05adeb10c919321 /man_macro.c
parentdd0d3dcce42380000f428a36e07f1c43cbe8b506 (diff)
downloadmandoc-f6077aba4f0b9ece3ceff820c0c651d148df1a37.tar.gz
implement the GNU man-ext .TQ macro in man(7),
used for example by groff_diff(7)
Diffstat (limited to 'man_macro.c')
-rw-r--r--man_macro.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/man_macro.c b/man_macro.c
index ef2b95a0..643bbb63 100644
--- a/man_macro.c
+++ b/man_macro.c
@@ -45,6 +45,7 @@ const struct man_macro __man_macros[MAN_MAX - MAN_TH] = {
{ blk_imp, MAN_BSCOPE | MAN_SCOPED }, /* SH */
{ blk_imp, MAN_BSCOPE | MAN_SCOPED }, /* SS */
{ blk_imp, MAN_BSCOPE | MAN_SCOPED }, /* TP */
+ { blk_imp, MAN_BSCOPE | MAN_SCOPED }, /* TQ */
{ blk_imp, MAN_BSCOPE }, /* LP */
{ blk_imp, MAN_BSCOPE }, /* PP */
{ blk_imp, MAN_BSCOPE }, /* P */
@@ -327,7 +328,7 @@ blk_imp(MACRO_PROT_ARGS)
*/
if (man_macros[tok].flags & MAN_SCOPED &&
- (tok == MAN_TP || n == man->last)) {
+ (tok == MAN_TP || tok == MAN_TQ || n == man->last)) {
man->flags |= MAN_BLINE;
return;
}