=================================================================== RCS file: /cvs/mandoc/mandocd.c,v retrieving revision 1.9 retrieving revision 1.12 diff -u -p -r1.9 -r1.12 --- mandoc/mandocd.c 2018/12/30 00:49:55 1.9 +++ mandoc/mandocd.c 2020/06/14 23:40:31 1.12 @@ -1,7 +1,7 @@ -/* $Id: mandocd.c,v 1.9 2018/12/30 00:49:55 schwarze Exp $ */ +/* $Id: mandocd.c,v 1.12 2020/06/14 23:40:31 schwarze Exp $ */ /* * Copyright (c) 2017 Michael Stapelberg - * Copyright (c) 2017 Ingo Schwarze + * Copyright (c) 2017, 2019 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -17,7 +17,7 @@ */ #include "config.h" -#if HAVE_CMSG_XPG42 +#if NEED_XPG4_2 #define _XPG4_2 #endif @@ -171,8 +171,8 @@ main(int argc, char *argv[]) errx(1, "file descriptor %s %s", argv[1], errstr); mchars_alloc(); - parser = mparse_alloc(MPARSE_SO | MPARSE_UTF8 | MPARSE_LATIN1, - MANDOC_OS_OTHER, defos); + parser = mparse_alloc(MPARSE_SO | MPARSE_UTF8 | MPARSE_LATIN1 | + MPARSE_VALIDATE, MANDOC_OS_OTHER, defos); memset(&options, 0, sizeof(options)); switch (outtype) { @@ -213,6 +213,8 @@ main(int argc, char *argv[]) process(parser, outtype, formatter); mparse_reset(parser); + if (outtype == OUTT_HTML) + html_reset(formatter); fflush(stdout); fflush(stderr);