From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Change "to" and "from" commands to use munder, mover, and
Date: Sun, 28 Sep 2014 16:14:20 -0400 (EDT) [thread overview]
Message-ID: <201409282014.s8SKEKIt017255@krisdoz.my.domain> (raw)
Log Message:
-----------
Change "to" and "from" commands to use munder, mover, and munderover.
Modified Files:
--------------
mdocml:
eqn_html.c
html.c
html.h
Revision Data
-------------
Index: html.h
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/html.h,v
retrieving revision 1.63
retrieving revision 1.64
diff -Lhtml.h -Lhtml.h -u -p -r1.63 -r1.64
--- html.h
+++ html.h
@@ -63,6 +63,9 @@ enum htmltag {
TAG_MTABLE,
TAG_MTR,
TAG_MTD,
+ TAG_MUNDEROVER,
+ TAG_MUNDER,
+ TAG_MOVER,
TAG_MAX
};
Index: html.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/html.c,v
retrieving revision 1.173
retrieving revision 1.174
diff -Lhtml.c -Lhtml.c -u -p -r1.173 -r1.174
--- html.c
+++ html.c
@@ -87,6 +87,9 @@ static const struct htmldata htmltags[TA
{"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] = {
Index: eqn_html.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/eqn_html.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -Leqn_html.c -Leqn_html.c -u -p -r1.6 -r1.7
--- eqn_html.c
+++ eqn_html.c
@@ -113,12 +113,14 @@ eqn_box(struct html *p, const struct eqn
*/
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
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;
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
reply other threads:[~2014-09-28 20:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201409282014.s8SKEKIt017255@krisdoz.my.domain \
--to=kristaps@mdocml.bsd.lv \
--cc=source@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).