diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-02-09 09:52:47 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-02-09 09:52:47 +0000 |
commit | 1c56bbdf26bc339ff32709360e5b8de0e220592f (patch) | |
tree | c51b7158555001d2d3e38762ce7dd96a2dd092b0 /mdoc_html.c | |
parent | f6b21f845c28c5c32c6abed3c8a192e58cd35fb0 (diff) | |
download | mandoc-1c56bbdf26bc339ff32709360e5b8de0e220592f.tar.gz |
EQN blocks are now printed in all modes. This is simply a printing of
the concatenated string (in -T[x]html, it gets a SPAN, too).
Diffstat (limited to 'mdoc_html.c')
-rw-r--r-- | mdoc_html.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mdoc_html.c b/mdoc_html.c index 4cfd188e..658f7702 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -410,6 +410,7 @@ print_mdoc_node(MDOC_ARGS) { int child; struct tag *t; + struct htmlpair tag; child = 1; t = h->tags.head; @@ -433,7 +434,10 @@ print_mdoc_node(MDOC_ARGS) 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 @@ -481,6 +485,8 @@ print_mdoc_node(MDOC_ARGS) 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); |