summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_validate.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2018-12-31 07:45:42 +0000
committerschwarze <schwarze@openbsd.org>2018-12-31 07:45:42 +0000
commitb8223a526f40caacf2133eb95f2b4a9f57da8cf6 (patch)
tree2f449fcb3d836172a7d5ff44cf0bd50e5afdec2b /usr.bin/mandoc/mdoc_validate.c
parentMove parsing of the .nf and .fi (fill mode) requests from the man(7) (diff)
downloadwireguard-openbsd-b8223a526f40caacf2133eb95f2b4a9f57da8cf6.tar.xz
wireguard-openbsd-b8223a526f40caacf2133eb95f2b4a9f57da8cf6.zip
Cleanup, no functional change:
Use the new parser flag ROFF_NOFILL in the mdoc(7) parser, too, instead of the old MDOC_LITERAL, which was an alias for the former MAN_LITERAL.
Diffstat (limited to 'usr.bin/mandoc/mdoc_validate.c')
-rw-r--r--usr.bin/mandoc/mdoc_validate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mdoc_validate.c b/usr.bin/mandoc/mdoc_validate.c
index 8ac38a2a6a8..9c71ca70078 100644
--- a/usr.bin/mandoc/mdoc_validate.c
+++ b/usr.bin/mandoc/mdoc_validate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mdoc_validate.c,v 1.282 2018/12/31 04:55:42 schwarze Exp $ */
+/* $OpenBSD: mdoc_validate.c,v 1.283 2018/12/31 07:45:42 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -336,7 +336,7 @@ mdoc_validate(struct roff_man *mdoc)
check_text(mdoc, n->line, n->pos, n->string);
if (np->tok != MDOC_Ql && np->tok != MDOC_Dl &&
(np->tok != MDOC_Bd ||
- (mdoc->flags & MDOC_LITERAL) == 0) &&
+ (mdoc->flags & ROFF_NOFILL) == 0) &&
(np->tok != MDOC_It || np->type != ROFFT_HEAD ||
np->parent->parent->norm->Bl.type != LIST_diag))
check_text_em(mdoc, n->line, n->pos, n->string);
@@ -409,7 +409,7 @@ check_text(struct roff_man *mdoc, int ln, int pos, char *p)
{
char *cp;
- if (MDOC_LITERAL & mdoc->flags)
+ if (mdoc->flags & ROFF_NOFILL)
return;
for (cp = p; NULL != (p = strchr(p, '\t')); p++)