version 1.25, 2009/02/26 16:08:11 |
version 1.26, 2009/02/27 08:20:15 |
|
|
|
|
#include "term.h" |
#include "term.h" |
|
|
#define INDENT 4 |
#define INDENT 6 |
|
|
/* |
/* |
* Performs actions on nodes of the abstract syntax tree. Both pre- and |
* Performs actions on nodes of the abstract syntax tree. Both pre- and |
Line 279 arg_width(const struct mdoc_arg *arg) |
|
Line 279 arg_width(const struct mdoc_arg *arg) |
|
{ |
{ |
size_t len, i, v; |
size_t len, i, v; |
|
|
/* TODO */ |
|
assert(*arg->value); |
assert(*arg->value); |
if (0 == strcmp(*arg->value, "indent")) |
if (0 == strcmp(*arg->value, "indent")) |
return(INDENT); |
return(INDENT); |
Line 1330 termp_bq_pre(DECL_ARGS) |
|
Line 1329 termp_bq_pre(DECL_ARGS) |
|
|
|
if (MDOC_BODY != node->type) |
if (MDOC_BODY != node->type) |
return(1); |
return(1); |
word(p, "["); |
word(p, "\\["); |
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
return(1); |
return(1); |
} |
} |
Line 1354 termp_pq_pre(DECL_ARGS) |
|
Line 1353 termp_pq_pre(DECL_ARGS) |
|
|
|
if (MDOC_BODY != node->type) |
if (MDOC_BODY != node->type) |
return(1); |
return(1); |
word(p, "("); |
word(p, "\\&("); |
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
return(1); |
return(1); |
} |
} |