diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2014-09-28 20:14:20 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2014-09-28 20:14:20 +0000 |
commit | 7b6089b3a242a9aeedb1da9076ec6ce78ee092a6 (patch) | |
tree | 869bc9407d38355d005147d4c8a060e36a444cc2 | |
parent | 5780c02f1388ea6049d16319ef3a305f1859680a (diff) | |
download | mandoc-7b6089b3a242a9aeedb1da9076ec6ce78ee092a6.tar.gz |
Change "to" and "from" commands to use munder, mover, and munderover.
-rw-r--r-- | eqn_html.c | 11 | ||||
-rw-r--r-- | html.c | 3 | ||||
-rw-r--r-- | html.h | 3 |
3 files changed, 13 insertions, 4 deletions
@@ -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; @@ -87,6 +87,9 @@ static const struct htmldata htmltags[TAG_MAX] = { {"mtable", 0}, /* TAG_MTABLE */ {"mtr", 0}, /* TAG_MTR */ {"mtd", 0}, /* TAG_MTD */ + {"munderover", 0}, /* TAG_MUNDEROVER */ + {"munder", 0}, /* TAG_MUNDER*/ + {"mover", 0}, /* TAG_MOVER*/ }; static const char *const htmlattrs[ATTR_MAX] = { @@ -63,6 +63,9 @@ enum htmltag { TAG_MTABLE, TAG_MTR, TAG_MTD, + TAG_MUNDEROVER, + TAG_MUNDER, + TAG_MOVER, TAG_MAX }; |