Fix indentation with spaces

This commit is contained in:
TheNain38 2015-10-19 21:58:53 +02:00 committed by TheNain38
parent 46bc234790
commit f2c888353d

View file

@ -78,34 +78,34 @@ function convert(input, output) {
} }
function readUtf8(filename) { function readUtf8(filename) {
var stream = new ActiveXObject("ADODB.Stream"); var stream = new ActiveXObject("ADODB.Stream");
stream.Open(); stream.Open();
stream.Type = 2; // Text stream.Type = 2; // Text
stream.Charset = 'utf-8'; stream.Charset = 'utf-8';
stream.LoadFromFile(filename); stream.LoadFromFile(filename);
var text = stream.ReadText(); var text = stream.ReadText();
stream.Close(); stream.Close();
return text; return text;
} }
function writeUtf8(filename, text) { function writeUtf8(filename, text) {
var stream = new ActiveXObject("ADODB.Stream"); var stream = new ActiveXObject("ADODB.Stream");
stream.Type = 2; // Text stream.Type = 2; // Text
stream.Charset = "utf-8"; stream.Charset = "utf-8";
stream.Open(); stream.Open();
stream.WriteText(text); stream.WriteText(text);
stream.Position = 0; stream.Position = 0;
stream.Type = 1; // Binary stream.Type = 1; // Binary
stream.Position = 3; stream.Position = 3;
var binary = stream.Read(); var binary = stream.Read();
stream.Close(); stream.Close();
stream.Open(); stream.Open();
stream.Type = 1; // Binary stream.Type = 1; // Binary
stream.Write(binary); stream.Write(binary);
stream.SaveToFile(filename, 2); stream.SaveToFile(filename, 2);
stream.Close(); stream.Close();
} }
</script> </script>
</job> </job>