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/mdoc_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/mdoc_html.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_html.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c index 76609267fcc..c9fa7a4fa16 100644 --- a/usr.bin/mandoc/mdoc_html.c +++ b/usr.bin/mandoc/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.59 2011/07/05 04:12:41 schwarze Exp $ */ +/* $Id: mdoc_html.c,v 1.60 2011/09/18 10:25:28 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -403,7 +403,6 @@ print_mdoc_node(MDOC_ARGS) { int child; struct tag *t; - struct htmlpair tag; child = 1; t = h->tags.head; @@ -430,9 +429,7 @@ print_mdoc_node(MDOC_ARGS) h->flags |= HTML_NOSPACE; return; case (MDOC_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 (MDOC_TBL): /* |