-/* $Id: mdoc_html.c,v 1.151 2011/02/06 21:44:36 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.153 2011/02/09 09:52:47 kristaps Exp $ */
/*
- * 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
* purpose with or without fee is hereby granted, provided that the above
{
int child;
struct tag *t;
+ struct htmlpair tag;
child = 1;
t = h->tags.head;
print_text(h, n->string);
return;
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):
/*
* This will take care of initialising all of the table
case (MDOC_ROOT):
mdoc_root_post(m, n, h);
break;
+ case (MDOC_EQN):
+ break;
default:
if (mdocs[n->tok].post && ENDBODY_NOT == n->end)
(*mdocs[n->tok].post)(m, n, h);
{
const char *pp;
struct htmlpair tag;
+ int flags;
switch (n->tok) {
case (MDOC_Bsx):
print_text(h, pp);
if (n->child) {
+ flags = h->flags;
h->flags |= HTML_KEEP;
print_text(h, n->child->string);
- h->flags &= ~HTML_KEEP;
+ h->flags = flags;
}
return(0);
}