=================================================================== RCS file: /cvs/mandoc/main.c,v retrieving revision 1.318 retrieving revision 1.319 diff -u -p -r1.318 -r1.319 --- mandoc/main.c 2019/01/11 17:04:44 1.318 +++ mandoc/main.c 2019/03/03 13:02:11 1.319 @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.318 2019/01/11 17:04:44 schwarze Exp $ */ +/* $Id: main.c,v 1.319 2019/03/03 13:02:11 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2012, 2014-2019 Ingo Schwarze @@ -835,6 +835,8 @@ parse(struct curparse *curp, int fd, const char *file) if (curp->outdata == NULL) outdata_alloc(curp); + else if (curp->outtype == OUTT_HTML) + html_reset(curp); mandoc_xr_reset(); meta = mparse_result(curp->mp);