aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/eqn_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2014-09-28 20:14:20 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2014-09-28 20:14:20 +0000
commitc893b75d7cad884ccefc3eea9dfbadad6577fdea (patch)
tree8c8500e77ad07d0df46855d329159e9fd7b367c3 /eqn_html.c
parentc74c8fc0039c665280a44e7cac275672b7045885 (diff)
downloadmandoc-c893b75d7cad884ccefc3eea9dfbadad6577fdea.tar.gz
mandoc-c893b75d7cad884ccefc3eea9dfbadad6577fdea.tar.zst
mandoc-c893b75d7cad884ccefc3eea9dfbadad6577fdea.zip
Change "to" and "from" commands to use munder, mover, and munderover.
Diffstat (limited to 'eqn_html.c')
-rw-r--r--eqn_html.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/eqn_html.c b/eqn_html.c
index 135ff992..f2e7f79d 100644
--- a/eqn_html.c
+++ b/eqn_html.c
@@ -1,4 +1,4 @@
-/* $Id: eqn_html.c,v 1.6 2014/09/28 14:06:09 kristaps Exp $ */
+/* $Id: eqn_html.c,v 1.7 2014/09/28 20:14:20 kristaps Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -113,12 +113,14 @@ eqn_box(struct html *p, const struct eqn_box *bp, int next)
*/
switch (bp->pos) {
case (EQNPOS_TO):
- /* FALLTHROUGH */
+ post = print_otag(p, TAG_MOVER, 0, NULL);
+ break;
case (EQNPOS_SUP):
post = print_otag(p, TAG_MSUP, 0, NULL);
break;
case (EQNPOS_FROM):
- /* FALLTHROUGH */
+ post = print_otag(p, TAG_MUNDER, 0, NULL);
+ break;
case (EQNPOS_SUB):
post = print_otag(p, TAG_MSUB, 0, NULL);
break;
@@ -126,9 +128,10 @@ eqn_box(struct html *p, const struct eqn_box *bp, int next)
post = print_otag(p, TAG_MFRAC, 0, NULL);
break;
case (EQNPOS_FROMTO):
- /* FALLTHROUGH */
+ post = print_otag(p, TAG_MUNDEROVER, 0, NULL);
+ skiptwo = 1;
+ break;
case (EQNPOS_SUBSUP):
- /* This requires two elements. */
post = print_otag(p, TAG_MSUBSUP, 0, NULL);
skiptwo = 1;
break;