version 1.82, 2015/01/23 14:21:01 |
version 1.84, 2015/02/01 23:10:35 |
Line 1006 pre_bl(DECL_ARGS) |
|
Line 1006 pre_bl(DECL_ARGS) |
|
return(1); |
return(1); |
} |
} |
|
|
print_line(".TS", MMAN_nl); |
if (n->nchild) { |
for (icol = 0; icol < n->norm->Bl.ncols; icol++) |
print_line(".TS", MMAN_nl); |
print_word("l"); |
for (icol = 0; icol < n->norm->Bl.ncols; icol++) |
print_word("."); |
print_word("l"); |
|
print_word("."); |
|
} |
outflags |= MMAN_nl; |
outflags |= MMAN_nl; |
return(1); |
return(1); |
} |
} |
Line 1020 post_bl(DECL_ARGS) |
|
Line 1022 post_bl(DECL_ARGS) |
|
|
|
switch (n->norm->Bl.type) { |
switch (n->norm->Bl.type) { |
case LIST_column: |
case LIST_column: |
print_line(".TE", 0); |
if (n->nchild) |
|
print_line(".TE", 0); |
break; |
break; |
case LIST_enum: |
case LIST_enum: |
n->norm->Bl.count = 0; |
n->norm->Bl.count = 0; |
|
|
pre_eo(DECL_ARGS) |
pre_eo(DECL_ARGS) |
{ |
{ |
|
|
outflags &= ~(MMAN_spc | MMAN_nl); |
if (n->end == ENDBODY_NOT && |
|
n->parent->head->child == NULL && |
|
n->child != NULL && |
|
n->child->end != ENDBODY_NOT) |
|
print_word("\\&"); |
|
else if (n->end != ENDBODY_NOT ? n->child != NULL : |
|
n->parent->head->child != NULL && |
|
(n->parent->body->child != NULL || |
|
n->parent->tail->child != NULL)) |
|
outflags &= ~(MMAN_spc | MMAN_nl); |
return(1); |
return(1); |
} |
} |
|
|
static void |
static void |
post_eo(DECL_ARGS) |
post_eo(DECL_ARGS) |
{ |
{ |
|
int body, tail; |
|
|
if (n->end != ENDBODY_SPACE) |
if (n->end != ENDBODY_NOT) { |
|
outflags |= MMAN_spc; |
|
return; |
|
} |
|
|
|
body = n->child != NULL || n->parent->head->child != NULL; |
|
tail = n->parent->tail != NULL && n->parent->tail->child != NULL; |
|
|
|
if (body && tail) |
outflags &= ~MMAN_spc; |
outflags &= ~MMAN_spc; |
|
else if ( ! (body || tail)) |
|
print_word("\\&"); |
|
else if ( ! tail) |
|
outflags |= MMAN_spc; |
} |
} |
|
|
static int |
static int |