diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2022-04-27 17:11:24 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2022-04-27 17:11:24 +0000 |
commit | 25152678ffdb7653b13569fefe86cb617d1e0532 (patch) | |
tree | 1f9326ddff3c4d06bed8e2611e7641684809c322 /man_term.c | |
parent | 3d43838424a8548b9c4ffe76ae65e482bfa44346 (diff) | |
download | mandoc-25152678ffdb7653b13569fefe86cb617d1e0532.tar.gz mandoc-25152678ffdb7653b13569fefe86cb617d1e0532.tar.zst mandoc-25152678ffdb7653b13569fefe86cb617d1e0532.zip |
The .AT, .DT, and .UC macros are allowed inside next-line scope
and never produce output at the place of their invocation.
Minibugs found while investigating unrelated afl(1) reports from tb@.
Diffstat (limited to 'man_term.c')
-rw-r--r-- | man_term.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,6 +1,6 @@ -/* $Id: man_term.c,v 1.236 2021/06/28 19:50:15 schwarze Exp $ */ +/* $Id: man_term.c,v 1.237 2022/04/27 17:11:24 schwarze Exp $ */ /* - * Copyright (c) 2010-2015, 2017-2020 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2010-2015,2017-2020,2022 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * * Permission to use, copy, modify, and distribute this software for any @@ -121,10 +121,10 @@ static const struct man_term_act man_term_acts[MAN_MAX - MAN_TH] = { { pre_alternate, NULL, 0 }, /* RI */ { NULL, NULL, 0 }, /* RE */ { pre_RS, post_RS, 0 }, /* RS */ - { pre_DT, NULL, 0 }, /* DT */ + { pre_DT, NULL, MAN_NOTEXT }, /* DT */ { pre_ign, NULL, MAN_NOTEXT }, /* UC */ { pre_PD, NULL, MAN_NOTEXT }, /* PD */ - { pre_ign, NULL, 0 }, /* AT */ + { pre_ign, NULL, MAN_NOTEXT }, /* AT */ { pre_in, NULL, MAN_NOTEXT }, /* in */ { pre_SY, post_SY, 0 }, /* SY */ { NULL, NULL, 0 }, /* YS */ |