mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-28 06:26:20 +00:00
fla export fix
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -327,8 +327,11 @@ public class XFLXmlWriter implements XMLStreamWriter {
|
||||
}
|
||||
|
||||
public static String escapeText(String text) {
|
||||
String[] from = new String[]{"&", "<"};
|
||||
String[] to = new String[]{"&", "<"};
|
||||
//String[] from = new String[]{"&", "<"};
|
||||
//String[] to = new String[]{"&", "<"};
|
||||
// temporary escape everything to make easier to compare the export with the old export
|
||||
String[] from = new String[]{"&", "<", "\"", "'", "\r", "\n"};
|
||||
String[] to = new String[]{"&", "<", """, "'", "
", "
"};
|
||||
for (int i = 0; i < from.length; i++) {
|
||||
text = text.replace(from[i], to[i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user