version 1.151, 2011/02/06 21:44:36 |
version 1.153, 2011/02/09 09:52:47 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 410 print_mdoc_node(MDOC_ARGS) |
|
Line 410 print_mdoc_node(MDOC_ARGS) |
|
{ |
{ |
int child; |
int child; |
struct tag *t; |
struct tag *t; |
|
struct htmlpair tag; |
|
|
child = 1; |
child = 1; |
t = h->tags.head; |
t = h->tags.head; |
Line 433 print_mdoc_node(MDOC_ARGS) |
|
Line 434 print_mdoc_node(MDOC_ARGS) |
|
print_text(h, n->string); |
print_text(h, n->string); |
return; |
return; |
case (MDOC_EQN): |
case (MDOC_EQN): |
return; |
PAIR_CLASS_INIT(&tag, "eqn"); |
|
print_otag(h, TAG_SPAN, 1, &tag); |
|
print_text(h, n->eqn->data); |
|
break; |
case (MDOC_TBL): |
case (MDOC_TBL): |
/* |
/* |
* This will take care of initialising all of the table |
* This will take care of initialising all of the table |
Line 481 print_mdoc_node(MDOC_ARGS) |
|
Line 485 print_mdoc_node(MDOC_ARGS) |
|
case (MDOC_ROOT): |
case (MDOC_ROOT): |
mdoc_root_post(m, n, h); |
mdoc_root_post(m, n, h); |
break; |
break; |
|
case (MDOC_EQN): |
|
break; |
default: |
default: |
if (mdocs[n->tok].post && ENDBODY_NOT == n->end) |
if (mdocs[n->tok].post && ENDBODY_NOT == n->end) |
(*mdocs[n->tok].post)(m, n, h); |
(*mdocs[n->tok].post)(m, n, h); |
Line 806 mdoc_xx_pre(MDOC_ARGS) |
|
Line 812 mdoc_xx_pre(MDOC_ARGS) |
|
{ |
{ |
const char *pp; |
const char *pp; |
struct htmlpair tag; |
struct htmlpair tag; |
|
int flags; |
|
|
switch (n->tok) { |
switch (n->tok) { |
case (MDOC_Bsx): |
case (MDOC_Bsx): |
Line 835 mdoc_xx_pre(MDOC_ARGS) |
|
Line 842 mdoc_xx_pre(MDOC_ARGS) |
|
|
|
print_text(h, pp); |
print_text(h, pp); |
if (n->child) { |
if (n->child) { |
|
flags = h->flags; |
h->flags |= HTML_KEEP; |
h->flags |= HTML_KEEP; |
print_text(h, n->child->string); |
print_text(h, n->child->string); |
h->flags &= ~HTML_KEEP; |
h->flags = flags; |
} |
} |
return(0); |
return(0); |
} |
} |