- it = node->parent;
- assert(MDOC_BLOCK == it->type);
- assert(MDOC_It == it->tok);
-
- n = it->parent;
- assert(MDOC_BODY == n->type);
- assert(MDOC_Bl == n->tok);
- n = n->parent;
- bl = &n->data.block;
-
- /* If `-tag', adjust our margins accordingly. */
-
- if (arg_hasattr(MDOC_Tag, bl->argc, bl->argv)) {
- i = arg_getattr(MDOC_Width, bl->argc, bl->argv);
- assert(i >= 0);
- assert(1 == bl->argv[i].sz);
- width = strlen(*bl->argv[i].value); /* XXX */
-
- if (MDOC_HEAD == node->type) {
- flushln(p);
- /* FIXME: nested lists. */
- p->rmargin = p->maxrmargin;
- p->flags &= ~TERMP_NOBREAK;
- } else {
- flushln(p);
- p->offset -= width + 1;
- p->flags &= ~TERMP_NOLPAD;
- }
- return;
- }
-
- if (arg_hasattr(MDOC_Ohang, bl->argc, bl->argv)) {
- i = arg_getattr(MDOC_Offset, bl->argc, bl->argv);
- width = 0;
- if (i >= 0) {
- assert(1 == bl->argv[i].sz);
- width = arg_offset(*bl->argv[i].value);
- }