diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-12 16:39:57 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-12 16:39:57 +0000 |
commit | c719ec85550f1763968d4ff729b4269511f07ad6 (patch) | |
tree | d5340aa0040af63f9237b8971624cc5d73329def /mdocml.c | |
parent | b772d067401e789feb01542db6d402e98c357b68 (diff) | |
download | mandoc-c719ec85550f1763968d4ff729b4269511f07ad6.tar.gz mandoc-c719ec85550f1763968d4ff729b4269511f07ad6.tar.zst mandoc-c719ec85550f1763968d4ff729b4269511f07ad6.zip |
*** empty log message ***
Diffstat (limited to 'mdocml.c')
-rw-r--r-- | mdocml.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdocml.c,v 1.40 2009/01/12 12:52:21 kristaps Exp $ */ +/* $Id: mdocml.c,v 1.41 2009/01/12 16:39:57 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se> * @@ -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); |