summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_validate.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2019-03-04 11:40:03 +0000
committerschwarze <schwarze@openbsd.org>2019-03-04 11:40:03 +0000
commit85490b9f01c8d4be0209202a5869f5be5af9139f (patch)
tree644d38625c59fae736e7173e389f7dbe5cbc2202 /usr.bin/mandoc/mdoc_validate.c
parentAccording to RFC 7230 Section 3.2 header field names are (diff)
downloadwireguard-openbsd-85490b9f01c8d4be0209202a5869f5be5af9139f.tar.xz
wireguard-openbsd-85490b9f01c8d4be0209202a5869f5be5af9139f.zip
Fix the last straggler where the struct roff_node "line" member
was abused to detect an input line break; instead, use the NODE_LINE flag to improve robustness.
Diffstat (limited to 'usr.bin/mandoc/mdoc_validate.c')
-rw-r--r--usr.bin/mandoc/mdoc_validate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_validate.c b/usr.bin/mandoc/mdoc_validate.c
index 53bfb031ba6..916c7dda071 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.284 2018/12/31 08:38:17 schwarze Exp $ */
+/* $OpenBSD: mdoc_validate.c,v 1.285 2019/03/04 11:40:03 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -1566,7 +1566,7 @@ post_it(POST_ARGS)
mandoc_msg(MANDOCERR_BL_COL, nit->line, nit->pos,
"%d columns, %d cells", cols, i);
else if (nit->head->next->child != NULL &&
- nit->head->next->child->line > nit->line)
+ nit->head->next->child->flags & NODE_LINE)
mandoc_msg(MANDOCERR_IT_NOARG,
nit->line, nit->pos, "Bl -column It");
break;