version 1.226, 2014/10/16 01:11:20 |
version 1.228, 2014/10/20 15:50:24 |
Line 205 mdoc_addeqn(struct mdoc *mdoc, const struct eqn *ep) |
|
Line 205 mdoc_addeqn(struct mdoc *mdoc, const struct eqn *ep) |
|
|
|
n = node_alloc(mdoc, ep->ln, ep->pos, MDOC_MAX, MDOC_EQN); |
n = node_alloc(mdoc, ep->ln, ep->pos, MDOC_MAX, MDOC_EQN); |
n->eqn = ep; |
n->eqn = ep; |
|
if (ep->ln > mdoc->last->line) |
|
n->flags |= MDOC_LINE; |
|
|
if ( ! node_append(mdoc, n)) |
if ( ! node_append(mdoc, n)) |
return(0); |
return(0); |
|
|
mdoc_parseln(struct mdoc *mdoc, int ln, char *buf, int offs) |
mdoc_parseln(struct mdoc *mdoc, int ln, char *buf, int offs) |
{ |
{ |
|
|
mdoc->flags |= MDOC_NEWLINE; |
if (mdoc->last->type != MDOC_EQN || ln > mdoc->last->line) |
|
mdoc->flags |= MDOC_NEWLINE; |
|
|
/* |
/* |
* Let the roff nS register switch SYNOPSIS mode early, |
* Let the roff nS register switch SYNOPSIS mode early, |