=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/eqn_html.c,v retrieving revision 1.10 retrieving revision 1.11 diff -c -r1.10 -r1.11 *** src/usr.bin/mandoc/eqn_html.c 2017/06/23 22:59:27 1.10 --- src/usr.bin/mandoc/eqn_html.c 2017/07/05 15:03:20 1.11 *************** *** 1,4 **** ! /* $OpenBSD: eqn_html.c,v 1.10 2017/06/23 22:59:27 schwarze Exp $ */ /* * Copyright (c) 2011, 2014 Kristaps Dzonsons * Copyright (c) 2017 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: eqn_html.c,v 1.11 2017/07/05 15:03:20 schwarze Exp $ */ /* * Copyright (c) 2011, 2014 Kristaps Dzonsons * Copyright (c) 2017 Ingo Schwarze *************** *** 49,55 **** if (EQN_MATRIX == bp->type) { if (NULL == bp->first) goto out; ! if (EQN_LIST != bp->first->type) { eqn_box(p, bp->first); goto out; } --- 49,56 ---- if (EQN_MATRIX == bp->type) { if (NULL == bp->first) goto out; ! if (bp->first->type != EQN_LIST || ! bp->first->expectargs == 1) { eqn_box(p, bp->first); goto out; } *************** *** 129,137 **** if (EQN_PILE == bp->type) { assert(NULL == post); ! if (bp->first != NULL && bp->first->type == EQN_LIST) post = print_otag(p, TAG_MTABLE, ""); ! } else if (bp->type == EQN_LIST && bp->parent && bp->parent->type == EQN_PILE) { assert(NULL == post); post = print_otag(p, TAG_MTR, ""); --- 130,140 ---- if (EQN_PILE == bp->type) { assert(NULL == post); ! if (bp->first != NULL && ! bp->first->type == EQN_LIST && ! bp->first->expectargs > 1) post = print_otag(p, TAG_MTABLE, ""); ! } else if (bp->type == EQN_LIST && bp->expectargs > 1 && bp->parent && bp->parent->type == EQN_PILE) { assert(NULL == post); post = print_otag(p, TAG_MTR, "");