version 1.99, 2011/12/02 01:45:43 |
version 1.100, 2011/12/03 22:47:27 |
|
|
/* Mark our last section. */ |
/* Mark our last section. */ |
|
|
mdoc->lastsec = sec; |
mdoc->lastsec = sec; |
|
|
|
/* |
|
* Set the section attribute for the current HEAD, for its |
|
* parent BLOCK, and for the HEAD children; the latter can |
|
* only be TEXT nodes, so no recursion is needed. |
|
* For other blocks and elements, including .Sh BODY, this is |
|
* done when allocating the node data structures, but for .Sh |
|
* BLOCK and HEAD, the section is still unknown at that time. |
|
*/ |
|
|
mdoc->last->parent->sec = sec; |
mdoc->last->parent->sec = sec; |
mdoc->last->sec = sec; |
mdoc->last->sec = sec; |
for (n = mdoc->last->child; n; n = n->next) |
for (n = mdoc->last->child; n; n = n->next) |