浏览代码

write xml in binary (prevent multiple newlines)

Nicolas Cannasse 18 年之前
父节点
当前提交
b6495cbda5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      genxml.ml

+ 1 - 1
genxml.ml

@@ -169,7 +169,7 @@ let rec write_xml ch tabs x =
 
 let generate file ctx types =
 	let x = node "haxe" [] (List.map (gen_type_decl ctx) types) in
-	let ch = IO.output_channel (open_out file) in
+	let ch = IO.output_channel (open_out_bin file) in
 	write_xml ch "" x;
 	IO.close_out ch