BulletML.FromDocument: Type detector. Various setstate bug fixes.
[python-bulletml.git] / bulletml-to-bulletyaml
index c5f8c56..ebe0e75 100755 (executable)
@@ -7,7 +7,8 @@ from bulletml import BulletML, bulletyaml
 
 def main(argv):
     for filename in argv:
-        print yaml.dump(BulletML.FromDocument(open(filename, "rU")))
+        print "# Loading", filename
+        print yaml.dump(yaml.load(yaml.dump(BulletML.FromDocument(open(filename, "rU")))))
 
 if __name__ == "__main__":
     main(sys.argv[1:])