bugfix of the bugfix
authorMartin Poirier <theeth@yahoo.com>
Sun, 30 Aug 2009 20:03:47 +0000 (20:03 +0000)
committerMartin Poirier <theeth@yahoo.com>
Sun, 30 Aug 2009 20:03:47 +0000 (20:03 +0000)
release/datafiles/datatoc.py

index ea72870f2a0018454c89803593ba073f582d3719..362d4ddc126db91953a3e04e158aa9898d57041e 100755 (executable)
@@ -50,6 +50,7 @@ sys.stdout.write("Making C file <%s>\n" % cname)
 
 filename = filename.replace(".", "_")
 sys.stdout.write(str(size))
+sys.stdout.write("\n")
 try:
        fpout = open(cname, "w")
 except:
@@ -66,7 +67,7 @@ while size > 0:
        if size % 32 == 31:
                fpout.write("\n")
        
-       fpout.write("%.2d," % ord(fpin.read(1)))
+       fpout.write("%3d," % ord(fpin.read(1)))
 
 fpout.write("\n  0};\n\n")