zzjson: Avoid printing empty line after each print
authorErwan Velu <erwanaliasr1@gmail.com>
Wed, 23 Mar 2011 22:01:59 +0000 (23:01 +0100)
committerErwan Velu <erwanaliasr1@gmail.com>
Wed, 23 Mar 2011 22:01:59 +0000 (23:01 +0100)
This is useless and generates confusing outputs

com32/gpllib/zzjson/zzjson_print.c

index 8a274c3..a59b3b0 100644 (file)
@@ -102,7 +102,7 @@ static int zzjson_print2(ZZJSON_CONFIG *config, ZZJSON *zzjson,
 
 int zzjson_print(ZZJSON_CONFIG *config, ZZJSON *zzjson) {
     int retval = zzjson_print2(config, zzjson, 0, 0);
-    if (retval >= 0) retval = config->putchar('\n', config->ohandle);
+//    if (retval >= 0) retval = config->putchar('\n', config->ohandle);
 #ifndef CONFIG_NO_ERROR_MESSAGES
     if (retval <  0) config->error(config->ehandle, "print: unable to print");
 #endif