source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Make eqn tree output a bit more useful.
@ 2014-09-28 11:32 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2014-09-28 11:32 UTC (permalink / raw)
  To: source

Log Message:
-----------
Make eqn tree output a bit more useful.

Modified Files:
--------------
    mdocml:
        tree.c

Revision Data
-------------
Index: tree.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/tree.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -Ltree.c -Ltree.c -u -p -r1.54 -r1.55
--- tree.c
+++ tree.c
@@ -290,9 +290,9 @@ print_box(const struct eqn_box *ep, int 
 	}
 
 	assert(t);
-	printf("%s(%d, %d, %d, %d, %d, \"%s\", \"%s\") %s\n",
+	printf("%s(size=%d, pos=%d, font=%d, mark=%d, pile=%d, l=\"%s\", r=\"%s\") %s\n",
 	    t, EQN_DEFSIZE == ep->size ? 0 : ep->size,
-	    ep->pos + 1, ep->font, ep->mark, ep->pile,
+	    ep->pos, ep->font, ep->mark, ep->pile,
 	    ep->left ? ep->left : "",
 	    ep->right ? ep->right : "",
 	    ep->text ? ep->text : "");
--
 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 11:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-28 11:32 mdocml: Make eqn tree output a bit more useful 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).