=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/main.c,v retrieving revision 1.221 retrieving revision 1.222 diff -u -r1.221 -r1.222 --- src/usr.bin/mandoc/main.c 2019/01/11 17:03:43 1.221 +++ src/usr.bin/mandoc/main.c 2019/03/03 13:01:47 1.222 @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.221 2019/01/11 17:03:43 schwarze Exp $ */ +/* $OpenBSD: main.c,v 1.222 2019/03/03 13:01:47 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2012, 2014-2019 Ingo Schwarze @@ -805,6 +805,8 @@ if (curp->outdata == NULL) outdata_alloc(curp); + else if (curp->outtype == OUTT_HTML) + html_reset(curp); mandoc_xr_reset(); meta = mparse_result(curp->mp);