summaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-02-09 09:52:47 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-02-09 09:52:47 +0000
commit8f65e2365fc46c19cff46c40dc76dbbd014fdbaa (patch)
tree0f87a48e9380aa73420fa32e1adfb2c9d159df54 /mdoc_html.c
parenta1933d3c64fdd2f70b36e98de723f84692e136b1 (diff)
downloadmandoc-8f65e2365fc46c19cff46c40dc76dbbd014fdbaa.tar.gz
mandoc-8f65e2365fc46c19cff46c40dc76dbbd014fdbaa.tar.zst
mandoc-8f65e2365fc46c19cff46c40dc76dbbd014fdbaa.zip
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.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index b6e61034..712cd92a 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.152 2011/02/06 23:02:31 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.153 2011/02/09 09:52:47 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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);