version 1.22, 2009/08/13 12:54:52 |
version 1.23, 2009/08/17 11:03:07 |
Line 474 pre_IP(DECL_ARGS) |
|
Line 474 pre_IP(DECL_ARGS) |
|
int ival; |
int ival; |
|
|
switch (n->type) { |
switch (n->type) { |
case (MAN_BLOCK): |
|
fmt_block_vspace(p, n); |
|
return(1); |
|
case (MAN_BODY): |
case (MAN_BODY): |
p->flags |= TERMP_NOLPAD; |
p->flags |= TERMP_NOLPAD; |
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
Line 485 pre_IP(DECL_ARGS) |
|
Line 482 pre_IP(DECL_ARGS) |
|
p->flags |= TERMP_NOBREAK; |
p->flags |= TERMP_NOBREAK; |
p->flags |= TERMP_TWOSPACE; |
p->flags |= TERMP_TWOSPACE; |
break; |
break; |
|
case (MAN_BLOCK): |
|
fmt_block_vspace(p, n); |
|
/* FALLTHROUGH */ |
default: |
default: |
return(1); |
return(1); |
} |
} |
|
|
len = INDENT * 2; |
len = INDENT; |
ival = -1; |
ival = -1; |
|
|
/* Calculate offset. */ |
/* Calculate offset. */ |
Line 503 pre_IP(DECL_ARGS) |
|
Line 503 pre_IP(DECL_ARGS) |
|
} |
} |
|
|
switch (n->type) { |
switch (n->type) { |
case (MAN_BODY): |
|
p->offset = INDENT + len; |
|
p->rmargin = p->maxrmargin; |
|
break; |
|
case (MAN_HEAD): |
case (MAN_HEAD): |
|
/* Handle zero-width lengths. */ |
|
if (0 == len) |
|
len = 1; |
|
|
p->offset = INDENT; |
p->offset = INDENT; |
p->rmargin = INDENT + len; |
p->rmargin = INDENT + len; |
if (ival < 0) |
if (ival < 0) |
Line 517 pre_IP(DECL_ARGS) |
|
Line 517 pre_IP(DECL_ARGS) |
|
for (nn = n->child; nn->next; nn = nn->next) |
for (nn = n->child; nn->next; nn = nn->next) |
print_node(p, fl, nn, m); |
print_node(p, fl, nn, m); |
return(0); |
return(0); |
|
case (MAN_BODY): |
|
p->offset = INDENT + len; |
|
p->rmargin = p->maxrmargin; |
|
break; |
default: |
default: |
break; |
break; |
} |
} |
Line 551 post_IP(DECL_ARGS) |
|
Line 555 post_IP(DECL_ARGS) |
|
static int |
static int |
pre_TP(DECL_ARGS) |
pre_TP(DECL_ARGS) |
{ |
{ |
|
const struct man_node *nn; |
|
size_t len; |
|
int ival; |
|
|
switch (n->type) { |
switch (n->type) { |
case (MAN_BLOCK): |
|
fmt_block_vspace(p, n); |
|
break; |
|
case (MAN_HEAD): |
case (MAN_HEAD): |
p->rmargin = INDENT * 2; |
|
p->offset = INDENT; |
|
p->flags |= TERMP_NOBREAK; |
p->flags |= TERMP_NOBREAK; |
p->flags |= TERMP_TWOSPACE; |
p->flags |= TERMP_TWOSPACE; |
break; |
break; |
case (MAN_BODY): |
case (MAN_BODY): |
p->flags |= TERMP_NOLPAD; |
p->flags |= TERMP_NOLPAD; |
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
p->offset = INDENT * 2; |
break; |
|
case (MAN_BLOCK): |
|
fmt_block_vspace(p, n); |
|
/* FALLTHROUGH */ |
|
default: |
|
return(1); |
|
} |
|
|
|
len = INDENT; |
|
ival = -1; |
|
|
|
/* Calculate offset. */ |
|
|
|
if (NULL != (nn = n->parent->head->child)) |
|
if (NULL != nn->next) |
|
if ((ival = arg_width(nn)) >= 0) |
|
len = (size_t)ival; |
|
|
|
switch (n->type) { |
|
case (MAN_HEAD): |
|
/* Handle zero-length properly. */ |
|
if (0 == len) |
|
len = 1; |
|
|
|
p->offset = INDENT; |
|
p->rmargin = INDENT + len; |
|
|
|
/* Don't print same-line elements. */ |
|
for (nn = n->child; nn; nn = nn->next) |
|
if (nn->line > n->line) |
|
print_node(p, fl, nn, m); |
|
return(0); |
|
case (MAN_BODY): |
|
p->offset = INDENT + len; |
|
p->rmargin = p->maxrmargin; |
break; |
break; |
default: |
default: |
break; |
break; |