summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man_html.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2011-04-21 22:59:54 +0000
committerschwarze <schwarze@openbsd.org>2011-04-21 22:59:54 +0000
commit19a69263bb10fbb790f29529cf522bd27cc723ed (patch)
tree8b3fe3de29a79cc26872d99345cf7186a127033d /usr.bin/mandoc/man_html.c
parentmatch on 6 series smbus, tested by Laurence Tratt (diff)
downloadwireguard-openbsd-19a69263bb10fbb790f29529cf522bd27cc723ed.tar.xz
wireguard-openbsd-19a69263bb10fbb790f29529cf522bd27cc723ed.zip
Merge version 1.10.10:
lots of cleanup and maintenance work by kristaps@. - move some main.c globals into struct curparse - move mandoc_*alloc to mandoc.h such that all code can use them - make mandoc_isdelim available to formatting frontends - dissolve mdoc_strings.c, move the code where it is used - make all error reporting functions void, their return values were useless - and various minor cleanups and fixes
Diffstat (limited to 'usr.bin/mandoc/man_html.c')
-rw-r--r--usr.bin/mandoc/man_html.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_html.c b/usr.bin/mandoc/man_html.c
index 526835e6576..d805cce275e 100644
--- a/usr.bin/mandoc/man_html.c
+++ b/usr.bin/mandoc/man_html.c
@@ -1,4 +1,4 @@
-/* $Id: man_html.c,v 1.36 2011/03/20 23:36:42 schwarze Exp $ */
+/* $Id: man_html.c,v 1.37 2011/04/21 22:59:54 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -176,6 +176,7 @@ print_man_node(MAN_ARGS)
{
int child;
struct tag *t;
+ struct htmlpair tag;
child = 1;
t = h->tags.head;
@@ -201,8 +202,10 @@ print_man_node(MAN_ARGS)
print_otag(h, TAG_BR, 0, NULL);
return;
case (MAN_EQN):
+ PAIR_CLASS_INIT(&tag, "eqn");
+ print_otag(h, TAG_SPAN, 1, &tag);
print_text(h, n->eqn->data);
- return;
+ break;
case (MAN_TBL):
/*
* This will take care of initialising all of the table
@@ -247,6 +250,8 @@ print_man_node(MAN_ARGS)
case (MAN_ROOT):
man_root_post(m, n, mh, h);
break;
+ case (MAN_EQN):
+ break;
default:
if (mans[n->tok].post)
(*mans[n->tok].post)(m, n, mh, h);