summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man_macro.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2018-12-31 10:03:38 +0000
committerschwarze <schwarze@openbsd.org>2018-12-31 10:03:38 +0000
commit542a495f70229495beb90dafd0333880e454fc23 (patch)
tree50560e2a634d1b3845ba806d47d61e38df836537 /usr.bin/mandoc/man_macro.c
parentExplicitly mention that tables created by -T{add,replace} are persistent (diff)
downloadwireguard-openbsd-542a495f70229495beb90dafd0333880e454fc23.tar.xz
wireguard-openbsd-542a495f70229495beb90dafd0333880e454fc23.zip
Cleanup, no functional change:
Since the man(7) and roff(7) validators no longer use the parser state flag ROFF_NOFILL, we can finally get rid of the function man_state(), resulting in a better separation of parsing and validation.
Diffstat (limited to 'usr.bin/mandoc/man_macro.c')
-rw-r--r--usr.bin/mandoc/man_macro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_macro.c b/usr.bin/mandoc/man_macro.c
index 009fe26bf2d..d6e2f393720 100644
--- a/usr.bin/mandoc/man_macro.c
+++ b/usr.bin/mandoc/man_macro.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: man_macro.c,v 1.103 2018/12/31 08:03:34 schwarze Exp $ */
+/* $OpenBSD: man_macro.c,v 1.104 2018/12/31 10:03:38 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2012-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -427,7 +427,7 @@ in_line_eoln(MACRO_PROT_ARGS)
/* Rewind our element scope. */
for ( ; man->last; man->last = man->last->parent) {
- man_state(man, man->last);
+ man->last->flags |= NODE_VALID;
if (man->last == n)
break;
}