summaryrefslogtreecommitdiffstats
path: root/cgi.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-10-22 22:06:43 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-10-22 22:06:43 +0000
commit70f6797983dbee0f8e271c9e7e706b473dcfb77c (patch)
treeba3717164d90348506bac182fa6fbf412db8937f /cgi.c
parent54ffa6b6bcb97f97cc0a3604078eb63aa8c759ef (diff)
downloadmandoc-70f6797983dbee0f8e271c9e7e706b473dcfb77c.tar.gz
use the new function man_validate() here, too
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cgi.c b/cgi.c
index 4dc470c3..00c9dce6 100644
--- a/cgi.c
+++ b/cgi.c
@@ -34,6 +34,7 @@
#include "mandoc.h"
#include "roff.h"
#include "mdoc.h"
+#include "man.h"
#include "main.h"
#include "manconf.h"
#include "mansearch.h"
@@ -860,8 +861,10 @@ format(const struct req *req, const char *file)
if (man->macroset == MACROSET_MDOC) {
mdoc_validate(man);
html_mdoc(vp, man);
- } else
+ } else {
+ man_validate(man);
html_man(vp, man);
+ }
html_free(vp);
mparse_free(mp);