version 1.30, 2009/09/16 22:17:27 |
version 1.31, 2009/09/17 07:41:28 |
Line 138 static void print_encode(const char *); |
|
Line 138 static void print_encode(const char *); |
|
static void print_text(struct html *, const char *); |
static void print_text(struct html *, const char *); |
static int mdoc_root_pre(MDOC_ARGS); |
static int mdoc_root_pre(MDOC_ARGS); |
|
|
|
static int mdoc_ar_pre(MDOC_ARGS); |
static int mdoc_fl_pre(MDOC_ARGS); |
static int mdoc_fl_pre(MDOC_ARGS); |
static int mdoc_nd_pre(MDOC_ARGS); |
static int mdoc_nd_pre(MDOC_ARGS); |
static int mdoc_nm_pre(MDOC_ARGS); |
static int mdoc_nm_pre(MDOC_ARGS); |
|
static int mdoc_ns_pre(MDOC_ARGS); |
static int mdoc_op_pre(MDOC_ARGS); |
static int mdoc_op_pre(MDOC_ARGS); |
static void mdoc_op_post(MDOC_ARGS); |
static void mdoc_op_post(MDOC_ARGS); |
static int mdoc_pp_pre(MDOC_ARGS); |
static int mdoc_pp_pre(MDOC_ARGS); |
Line 165 static const struct htmlmdoc mdocs[MDOC_MAX] = { |
|
Line 167 static const struct htmlmdoc mdocs[MDOC_MAX] = { |
|
{NULL, NULL}, /* It */ |
{NULL, NULL}, /* It */ |
{NULL, NULL}, /* Ad */ |
{NULL, NULL}, /* Ad */ |
{NULL, NULL}, /* An */ |
{NULL, NULL}, /* An */ |
{NULL, NULL}, /* Ar */ |
{mdoc_ar_pre, NULL}, /* Ar */ |
{NULL, NULL}, /* Cd */ |
{NULL, NULL}, /* Cd */ |
{NULL, NULL}, /* Cm */ |
{NULL, NULL}, /* Cm */ |
{NULL, NULL}, /* Dv */ |
{NULL, NULL}, /* Dv */ |
Line 222 static const struct htmlmdoc mdocs[MDOC_MAX] = { |
|
Line 224 static const struct htmlmdoc mdocs[MDOC_MAX] = { |
|
{NULL, NULL}, /* Fx */ |
{NULL, NULL}, /* Fx */ |
{NULL, NULL}, /* Ms */ |
{NULL, NULL}, /* Ms */ |
{NULL, NULL}, /* No */ |
{NULL, NULL}, /* No */ |
{NULL, NULL}, /* Ns */ |
{mdoc_ns_pre, NULL}, /* Ns */ |
{NULL, NULL}, /* Nx */ |
{NULL, NULL}, /* Nx */ |
{NULL, NULL}, /* Ox */ |
{NULL, NULL}, /* Ox */ |
{NULL, NULL}, /* Pc */ |
{NULL, NULL}, /* Pc */ |
Line 697 mdoc_nd_pre(MDOC_ARGS) |
|
Line 699 mdoc_nd_pre(MDOC_ARGS) |
|
{ |
{ |
|
|
if (MDOC_BODY == n->type) |
if (MDOC_BODY == n->type) |
print_text(h, "--"); |
print_text(h, "\\(en"); |
return(1); |
return(1); |
} |
} |
|
|
Line 784 mdoc_xr_pre(MDOC_ARGS) |
|
Line 786 mdoc_xr_pre(MDOC_ARGS) |
|
print_text(h, ")"); |
print_text(h, ")"); |
|
|
return(0); |
return(0); |
|
} |
|
|
|
|
|
/* ARGSUSED */ |
|
static int |
|
mdoc_ns_pre(MDOC_ARGS) |
|
{ |
|
|
|
h->flags |= HTML_NOSPACE; |
|
return(1); |
|
} |
|
|
|
|
|
/* ARGSUSED */ |
|
static int |
|
mdoc_ar_pre(MDOC_ARGS) |
|
{ |
|
struct htmlpair tag; |
|
|
|
tag.key = ATTR_CLASS; |
|
tag.val = "arg"; |
|
|
|
print_otag(h, TAG_SPAN, 1, &tag); |
|
return(1); |
} |
} |