diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-21 13:18:24 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-21 13:18:24 +0000 |
commit | a81f461489b2bf2b5e7068e28199fb91696818b5 (patch) | |
tree | f27c5d398f34a45ea9a214ddc08378b786b05239 /tree.c | |
parent | c5ab7f7879cd81f9d23c71ca68bf4af0159fc64f (diff) | |
download | mandoc-a81f461489b2bf2b5e7068e28199fb91696818b5.tar.gz mandoc-a81f461489b2bf2b5e7068e28199fb91696818b5.tar.zst mandoc-a81f461489b2bf2b5e7068e28199fb91696818b5.zip |
Add support for markers. These decorate the last box: see eqn.7.
Diffstat (limited to 'tree.c')
-rw-r--r-- | tree.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: tree.c,v 1.39 2011/07/21 12:30:44 kristaps Exp $ */ +/* $Id: tree.c,v 1.40 2011/07/21 13:18:24 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -270,15 +270,15 @@ print_box(const struct eqn_box *ep, int indent) switch (ep->type) { case (EQN_ROOT): - puts("eqn-root"); + printf("eqn-root(%d)\n", ep->mark); print_box(ep->child, indent + 1); break; case (EQN_SUBEXPR): - puts("eqn-subxpr"); + printf("eqn-subxpr(%d)\n", ep->mark); print_box(ep->child, indent + 1); break; case (EQN_TEXT): - printf("eqn-text: [%s]\n", ep->text); + printf("eqn-text(%d): [%s]\n", ep->mark, ep->text); break; default: break; |