summaryrefslogtreecommitdiffstats
path: root/mdocml.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-12 16:39:57 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-12 16:39:57 +0000
commit1ffa508fd07870fb2094e48de2c5207abd02fc6c (patch)
tree5386c805f76801425f3e589242f263837395f6c2 /mdocml.c
parentf41349a945984d15e04b7576ea08bc651631d093 (diff)
downloadmandoc-1ffa508fd07870fb2094e48de2c5207abd02fc6c.tar.gz
*** empty log message ***
Diffstat (limited to 'mdocml.c')
-rw-r--r--mdocml.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mdocml.c b/mdocml.c
index 90d26349..d8195387 100644
--- a/mdocml.c
+++ b/mdocml.c
@@ -238,12 +238,16 @@ print_node(const struct mdoc_node *n, int indent)
for (i = 0; i < (int)argc; i++) {
(void)printf(" -%s", mdoc_argnames[argv[i].arg]);
+ if (j > 0)
+ (void)printf(" [");
for (j = 0; j < (int)argv[i].sz; j++)
- (void)printf(" \"%s\"", argv[i].value[j]);
+ (void)printf(" [%s]", argv[i].value[j]);
+ if (j > 0)
+ (void)printf(" ]");
}
for (i = 0; i < (int)sz; i++)
- (void)printf(" \"%s\"", params[i]);
+ (void)printf(" [%s]", params[i]);
(void)printf(" %d:%d\n", n->line, n->pos);