version 1.130, 2015/02/04 22:29:27 |
version 1.131, 2015/02/05 00:13:34 |
|
|
assert(to); |
assert(to); |
mdoc->next = MDOC_NEXT_SIBLING; |
mdoc->next = MDOC_NEXT_SIBLING; |
while (mdoc->last != to) { |
while (mdoc->last != to) { |
if ( ! (mdoc->last->flags & MDOC_VALID)) |
|
mdoc->last->lastline = to->lastline - |
|
(mdoc->flags & MDOC_NEWLINE ? 1 : 0); |
|
/* |
/* |
* Save the parent here, because we may delete the |
* Save the parent here, because we may delete the |
* mdoc->last node in the post-validation phase and reset |
* mdoc->last node in the post-validation phase and reset |
|
|
/* Remember the start of our own body. */ |
/* Remember the start of our own body. */ |
|
|
if (n->type == MDOC_BODY && atok == n->tok) { |
if (n->type == MDOC_BODY && atok == n->tok) { |
if (n->end == ENDBODY_NOT) { |
if (n->end == ENDBODY_NOT) |
body = n; |
body = n; |
n->lastline = line; |
|
} |
|
continue; |
continue; |
} |
} |
|
|
|
|
} |
} |
|
|
if (atok == n->tok) { |
if (atok == n->tok) { |
n->lastline = line; |
|
assert(body); |
assert(body); |
|
|
/* |
/* |