diff options
author | 2011-09-18 10:25:28 +0000 | |
---|---|---|
committer | 2011-09-18 10:25:28 +0000 | |
commit | f8618d9964397ffcbec49fbf86801d8e517e51aa (patch) | |
tree | 60d86093f0e5ef2fa40fab6d112ce30a3e2806bc /usr.bin/mandoc/man_html.c | |
parent | Avoid potential 64-bit unaligned access on strict alignment architectures. (diff) | |
download | wireguard-openbsd-f8618d9964397ffcbec49fbf86801d8e517e51aa.tar.xz wireguard-openbsd-f8618d9964397ffcbec49fbf86801d8e517e51aa.zip |
sync to version 1.11.5:
adding an implementation of the eqn(7) language
by kristaps@
So far, only .EQ/.EN blocks are handled, in-line equations are not, and
rendering is not yet very pretty, but the parser is fairly complete.
Diffstat (limited to 'usr.bin/mandoc/man_html.c')
-rw-r--r-- | usr.bin/mandoc/man_html.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/mandoc/man_html.c b/usr.bin/mandoc/man_html.c index 0dea648b2bc..1dcfe5aea61 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.40 2011/07/08 17:47:54 schwarze Exp $ */ +/* $Id: man_html.c,v 1.41 2011/09/18 10:25:28 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -197,7 +197,6 @@ print_man_node(MAN_ARGS) { int child; struct tag *t; - struct htmlpair tag; child = 1; t = h->tags.head; @@ -225,9 +224,7 @@ print_man_node(MAN_ARGS) print_text(h, n->string); return; case (MAN_EQN): - PAIR_CLASS_INIT(&tag, "eqn"); - print_otag(h, TAG_SPAN, 1, &tag); - print_text(h, n->eqn->data); + print_eqn(h, n->eqn); break; case (MAN_TBL): /* |