Don't dump extra spaces when indenting
authorPetri Lehtinen <petri@digip.org>
Thu, 9 Jul 2009 17:54:29 +0000 (20:54 +0300)
committerPetri Lehtinen <petri@digip.org>
Thu, 9 Jul 2009 18:01:43 +0000 (21:01 +0300)
src/dump.c

index b8bd460..ad22acd 100644 (file)
@@ -54,8 +54,7 @@ static int dump_indent(uint32_t flags, int depth, dump_func dump, void *data)
         memset(ws_buffer, ' ', ws_count);
         return dump(ws_buffer, ws_count, data);
     }
-    else
-        return dump(" ", 1, data);
+    return 0;
 }
 
 static int dump_string(const char *str, dump_func dump, void *data)