aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-26 22:42:49 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-05-26 22:42:49 +0300
commit8893389e6bbd27b03d77b7ffa63061e543e8df09 (patch)
treeda189f8739d4712be73600a261210df4cc681316 /src
parenta98d3bcc6bcd42b4a2bc405183c531f4dcccd067 (diff)
downloadgrecs-8893389e6bbd27b03d77b7ffa63061e543e8df09.tar.gz
grecs-8893389e6bbd27b03d77b7ffa63061e543e8df09.tar.bz2
Fix output formatting.
* Makefile.am (EXTRA_DIST): Add @GRECS_DISTDOC@. * am/grecs.m4 (GRECS_SETUP): New flag syntax-doc sets GRECS_DISTDOC. * doc/GRECS_SETUP.3: Update. * src/format.c (grecs_format_node): Print value if GRECS_NODE_FLAG_VALUE is set. * tests/glob01.at: Update.
Diffstat (limited to 'src')
-rw-r--r--src/format.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/format.c b/src/format.c
index a8f758d..4a0d759 100644
--- a/src/format.c
+++ b/src/format.c
@@ -306,8 +306,7 @@ grecs_format_node(struct grecs_node *node, int flags,
grecs_format_node_path(node, flags, clos);
delim_str = ": ";
}
- if (node->type == grecs_node_stmt &&
- (flags & GRECS_NODE_FLAG_VALUE)) {
+ if (flags & GRECS_NODE_FLAG_VALUE) {
if (delim_str)
clos->fmtfun(delim_str, clos->data);
grecs_format_value(node->v.value, flags, clos);

Return to:

Send suggestions and report system problems to the System administrator.