diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -866,8 +866,11 @@ rerun: } else if (ROFF_EQN == rr) { assert(curp->man || curp->mdoc); assert(roff_eqn(curp->roff)); - if (curp->mdoc) - mdoc_addeqn(curp->mdoc, roff_eqn(curp->roff)); + rc = curp->mdoc ? + mdoc_addeqn(curp->mdoc, + roff_eqn(curp->roff)) : + man_addeqn(curp->man, + roff_eqn(curp->roff)); } else if (curp->man || curp->mdoc) { rc = curp->man ? man_parseln(curp->man, |