From bc18b61a29958e619bfc43c2253dfa7dbf5767aa Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Thu, 16 Oct 2014 11:21:36 -0700 Subject: [PATCH] Fix for HXML comments on Flash target --- tools/platforms/FlashPlatform.hx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tools/platforms/FlashPlatform.hx b/tools/platforms/FlashPlatform.hx index 5f33cb047..fbba8c1b4 100644 --- a/tools/platforms/FlashPlatform.hx +++ b/tools/platforms/FlashPlatform.hx @@ -52,6 +52,21 @@ class FlashPlatform extends PlatformTarget { var hxml = File.getContent (project.app.path + "/flash/haxe/" + type + ".hxml"); hxml = StringTools.replace (hxml, "\r\n", "\n"); + + var lines = hxml.split ("\n"); + hxml = ""; + + for (line in lines) { + + if (!StringTools.startsWith (line, "#")) { + + if (hxml.length > 0) hxml += " "; + hxml += line; + + } + + } + hxml = StringTools.replace (hxml, "\n", " "); hxml = StringTools.trim (hxml);