From 596dd032fb31985bd7856efcd6ee3dc133479cec Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 9 May 2011 14:51:44 -0400 Subject: [PATCH] Remove extra space in pretty print Signed-off-by: Mathieu Desnoyers --- formats/ctf-text/types/struct.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/formats/ctf-text/types/struct.c b/formats/ctf-text/types/struct.c index 7dd17e04..3a69994f 100644 --- a/formats/ctf-text/types/struct.c +++ b/formats/ctf-text/types/struct.c @@ -33,7 +33,8 @@ int ctf_text_struct_write(struct stream_pos *ppos, struct definition *definition if (pos->depth >= 0) { if (pos->field_nr++ != 0) fprintf(pos->fp, ","); - fprintf(pos->fp, " "); + if (pos->print_names || len > 1) + fprintf(pos->fp, " "); if (pos->print_names && definition->name != 0) fprintf(pos->fp, "%s = ", g_quark_to_string(definition->name)); -- 2.34.1