]> granicus.if.org Git - graphviz/commitdiff
Fix tab bug
authorerg <devnull@localhost>
Fri, 9 Nov 2007 18:09:46 +0000 (18:09 +0000)
committererg <devnull@localhost>
Fri, 9 Nov 2007 18:09:46 +0000 (18:09 +0000)
lib/cgraph/write.c

index b8a3eef593b5de6ea26f3314401ce74cc1fbe46b..ebf87e596ed1d200fdd3fedad64bf925765b8617 100644 (file)
@@ -562,6 +562,7 @@ static void write_body(Agraph_t * g, iochan_t * ofile)
 
 int agwrite(Agraph_t * g, void *ofile)
 {
+    Level = 0; /* re-initialize tab level */
     write_hdr(g, ofile, TRUE);
     write_body(g, ofile);
     write_trl(g, ofile);