version 1.70, 2010/05/30 22:56:02 |
version 1.72, 2010/06/03 13:44:36 |
Line 255 static const struct htmlmdoc mdocs[MDOC_MAX] = { |
|
Line 255 static const struct htmlmdoc mdocs[MDOC_MAX] = { |
|
{mdoc_sp_pre, NULL}, /* br */ |
{mdoc_sp_pre, NULL}, /* br */ |
{mdoc_sp_pre, NULL}, /* sp */ |
{mdoc_sp_pre, NULL}, /* sp */ |
{mdoc__x_pre, mdoc__x_post}, /* %U */ |
{mdoc__x_pre, mdoc__x_post}, /* %U */ |
|
{NULL, NULL}, /* Ta */ |
}; |
}; |
|
|
|
|
Line 831 mdoc_it_block_pre(MDOC_ARGS, enum mdoc_list type, int |
|
Line 832 mdoc_it_block_pre(MDOC_ARGS, enum mdoc_list type, int |
|
struct roffsu su; |
struct roffsu su; |
|
|
nn = n->parent->parent; |
nn = n->parent->parent; |
assert(nn->args); |
|
|
|
/* XXX: see notes in mdoc_it_pre(). */ |
/* XXX: see notes in mdoc_it_pre(). */ |
|
|
Line 1013 mdoc_it_pre(MDOC_ARGS) |
|
Line 1013 mdoc_it_pre(MDOC_ARGS) |
|
|
|
/* Get width, offset, and compact arguments. */ |
/* Get width, offset, and compact arguments. */ |
|
|
for (wp = -1, comp = i = 0; i < (int)bl->args->argc; i++) |
wp = -1; |
|
for (comp = i = 0; bl->args && i < (int)bl->args->argc; i++) |
switch (bl->args->argv[i].arg) { |
switch (bl->args->argv[i].arg) { |
case (MDOC_Column): |
case (MDOC_Column): |
wp = i; /* Save for later. */ |
wp = i; /* Save for later. */ |
Line 1321 mdoc_bd_pre(MDOC_ARGS) |
|
Line 1322 mdoc_bd_pre(MDOC_ARGS) |
|
SCALE_VS_INIT(&su, 0); |
SCALE_VS_INIT(&su, 0); |
|
|
type = comp = 0; |
type = comp = 0; |
for (i = 0; i < (int)bl->args->argc; i++) |
for (i = 0; bl->args && i < (int)bl->args->argc; i++) |
switch (bl->args->argv[i].arg) { |
switch (bl->args->argv[i].arg) { |
case (MDOC_Offset): |
case (MDOC_Offset): |
a2offs(bl->args->argv[i].value[0], &su); |
a2offs(bl->args->argv[i].value[0], &su); |
Line 1996 mdoc_bf_pre(MDOC_ARGS) |
|
Line 1997 mdoc_bf_pre(MDOC_ARGS) |
|
else if ( ! strcmp("Li", n->head->child->string)) |
else if ( ! strcmp("Li", n->head->child->string)) |
PAIR_CLASS_INIT(&tag[0], "lit"); |
PAIR_CLASS_INIT(&tag[0], "lit"); |
} else { |
} else { |
assert(n->args); |
for (i = 0; n->args && i < (int)n->args->argc; i++) |
for (i = 0; i < (int)n->args->argc; i++) |
|
switch (n->args->argv[i].arg) { |
switch (n->args->argv[i].arg) { |
case (MDOC_Symbolic): |
case (MDOC_Symbolic): |
PAIR_CLASS_INIT(&tag[0], "symb"); |
PAIR_CLASS_INIT(&tag[0], "symb"); |