diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-31 07:08:12 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-31 07:08:12 +0000 |
commit | c307b01e3d5709e7d34106b6fe8e98b468bf33f8 (patch) | |
tree | 939b2a1acb043c38c2dacc70855f028e163b6f42 /man_validate.c | |
parent | c0cea6817b9d23d8e5e4a752fc1dff8dfb604cdc (diff) | |
download | mandoc-c307b01e3d5709e7d34106b6fe8e98b468bf33f8.tar.gz |
Move parsing of the .nf and .fi (fill mode) requests from the man(7)
parser to the roff(7) parser. As a side effect, .nf and .fi are
now also parsed in mdoc(7) input, though the mdoc(7) formatters
still ignore most of their effect.
Diffstat (limited to 'man_validate.c')
-rw-r--r-- | man_validate.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/man_validate.c b/man_validate.c index fcc28853..2aa6a244 100644 --- a/man_validate.c +++ b/man_validate.c @@ -78,8 +78,6 @@ static const v_check man_valids[MAN_MAX - MAN_TH] = { NULL, /* I */ NULL, /* IR */ NULL, /* RI */ - NULL, /* nf */ - NULL, /* fi */ NULL, /* RE */ check_part, /* RS */ NULL, /* DT */ @@ -153,6 +151,7 @@ man_validate(struct roff_man *man) default: if (n->tok < ROFF_MAX) { roff_validate(man); + man_state(man, n); break; } assert(n->tok >= MAN_TH && n->tok < MAN_MAX); @@ -207,7 +206,7 @@ check_text(CHKARGS) { char *cp, *p; - if (MAN_LITERAL & man->flags) + if (man->flags & ROFF_NOFILL) return; cp = n->string; |