fla export fix

This commit is contained in:
honfika@gmail.com
2016-03-08 19:02:31 +01:00
parent c2ad1a8546
commit ac27a0c7c8
2 changed files with 5 additions and 7 deletions

View File

@@ -2964,11 +2964,6 @@ public class XFLConverter {
psXml.writeElementValue("policy-file-url", "http://fpdownload.adobe.com/pub/swz/crossdomain.xml");
psXml.writeElementValue("rsl-url", "textLayout_2.0.0.232.swz");
psXml.writeEndElement();
psXml.writeStartElement("library-path-entry");
psXml.writeElementValue("swc-path", "$(FlexSDK)/frameworks/libs/core.swc");
psXml.writeElementValue("linkage", "merge");
psXml.writeElementValue("rsl-url", "textLayout_2.0.0.232.swz");
psXml.writeEndElement();
psXml.writeEndElement();
psXml.writeStartElement("LibraryVersions");

View File

@@ -327,8 +327,11 @@ public class XFLXmlWriter implements XMLStreamWriter {
}
public static String escapeText(String text) {
String[] from = new String[]{"&", "<"};
String[] to = new String[]{"&amp;", "&lt;"};
//String[] from = new String[]{"&", "<"};
//String[] to = new String[]{"&amp;", "&lt;"};
// temporary escape everything to make easier to compare the export with the old export
String[] from = new String[]{"&", "<", "\"", "'", "\r", "\n"};
String[] to = new String[]{"&amp;", "&lt;", "&quot;", "&#x27;", "&#xD;", "&#xD;"};
for (int i = 0; i < from.length; i++) {
text = text.replace(from[i], to[i]);
}