version 1.138, 2015/04/19 14:00:20 |
version 1.139, 2015/04/19 14:25:41 |
|
|
#include "mdoc.h" |
#include "mdoc.h" |
#include "man.h" |
#include "man.h" |
#include "libmandoc.h" |
#include "libmandoc.h" |
|
#include "roff_int.h" |
|
|
#define REPARSE_LIMIT 1000 |
#define REPARSE_LIMIT 1000 |
|
|
|
|
* Do the same for ROFF_EQN. |
* Do the same for ROFF_EQN. |
*/ |
*/ |
|
|
if (rr == ROFF_TBL) { |
if (rr == ROFF_TBL) |
while ((span = roff_span(curp->roff)) != NULL) |
while ((span = roff_span(curp->roff)) != NULL) |
if (curp->man->macroset == MACROSET_MDOC) |
roff_addtbl(curp->man, span); |
mdoc_addspan(curp->man, span); |
else if (rr == ROFF_EQN) |
else |
roff_addeqn(curp->man, roff_eqn(curp->roff)); |
man_addspan(curp->man, span); |
else if ((curp->man->macroset == MACROSET_MDOC ? |
} else if (rr == ROFF_EQN) { |
|
if (curp->man->macroset == MACROSET_MDOC) |
|
mdoc_addeqn(curp->man, roff_eqn(curp->roff)); |
|
else |
|
man_addeqn(curp->man, roff_eqn(curp->roff)); |
|
} else if ((curp->man->macroset == MACROSET_MDOC ? |
|
mdoc_parseln(curp->man, curp->line, ln.buf, of) : |
mdoc_parseln(curp->man, curp->line, ln.buf, of) : |
man_parseln(curp->man, curp->line, ln.buf, of)) == 2) |
man_parseln(curp->man, curp->line, ln.buf, of)) == 2) |
break; |
break; |