diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-10-22 22:06:43 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-10-22 22:06:43 +0000 |
commit | 70f6797983dbee0f8e271c9e7e706b473dcfb77c (patch) | |
tree | ba3717164d90348506bac182fa6fbf412db8937f | |
parent | 54ffa6b6bcb97f97cc0a3604078eb63aa8c759ef (diff) | |
download | mandoc-70f6797983dbee0f8e271c9e7e706b473dcfb77c.tar.gz |
use the new function man_validate() here, too
-rw-r--r-- | Makefile.depend | 2 | ||||
-rw-r--r-- | cgi.c | 5 | ||||
-rw-r--r-- | demandoc.c | 4 | ||||
-rw-r--r-- | mandocdb.c | 1 |
4 files changed, 9 insertions, 3 deletions
diff --git a/Makefile.depend b/Makefile.depend index 4cb1df3e..ed00dbb9 100644 --- a/Makefile.depend +++ b/Makefile.depend @@ -1,5 +1,5 @@ att.o: att.c config.h roff.h mdoc.h libmdoc.h -cgi.o: cgi.c config.h mandoc_aux.h mandoc.h roff.h mdoc.h main.h manconf.h mansearch.h cgi.h +cgi.o: cgi.c config.h mandoc_aux.h mandoc.h roff.h mdoc.h man.h main.h manconf.h mansearch.h cgi.h chars.o: chars.c config.h mandoc.h mandoc_aux.h mandoc_ohash.h compat_ohash.h libmandoc.h compat_err.o: compat_err.c config.h compat_fgetln.o: compat_fgetln.c config.h @@ -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); @@ -122,8 +122,10 @@ pmandoc(struct mparse *mp, int fd, const char *fn, int list) if (man->macroset == MACROSET_MDOC) { mdoc_validate(man); pmdoc(man->first->child, &line, &col, list); - } else + } else { + man_validate(man); pman(man->first->child, &line, &col, list); + } if ( ! list) putchar('\n'); @@ -1176,6 +1176,7 @@ mpages_merge(struct mparse *mp) mpage->arch == NULL ? "" : mpage->arch); mpage->title = mandoc_strdup(man->meta.title); } else if (man != NULL && man->macroset == MACROSET_MAN) { + man_validate(man); mpage->form = FORM_SRC; mpage->sec = mandoc_strdup(man->meta.msec); mpage->arch = mandoc_strdup(mlink->arch); |