source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Change "to" and "from" commands to use munder, mover, and
@ 2014-09-28 20:14 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2014-09-28 20:14 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-28 20:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-28 20:14 mdocml: Change "to" and "from" commands to use munder, mover, and kristaps

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).