mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 16:30:46 +00:00
Changed: Quotes in tree node parameter values that need them
This commit is contained in:
@@ -22,6 +22,7 @@ import com.jpexs.decompiler.flash.SWFOutputStream;
|
||||
import com.jpexs.decompiler.flash.types.annotations.Conditional;
|
||||
import com.jpexs.decompiler.flash.types.annotations.SWFVersion;
|
||||
import com.jpexs.helpers.ByteArrayRange;
|
||||
import com.jpexs.helpers.Helper;
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -93,7 +94,7 @@ public class FrameLabelTag extends Tag {
|
||||
public Map<String, String> getNameProperties() {
|
||||
Map<String, String> ret = super.getNameProperties();
|
||||
if (!name.isEmpty()) {
|
||||
ret.put("name", name);
|
||||
ret.put("name", "\"" + Helper.escapePCodeString(name) + "\"");
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ import com.jpexs.decompiler.flash.types.SHAPE;
|
||||
import com.jpexs.decompiler.flash.types.TEXTRECORD;
|
||||
import com.jpexs.decompiler.flash.types.shaperecords.SHAPERECORD;
|
||||
import com.jpexs.helpers.ByteArrayRange;
|
||||
import com.jpexs.helpers.Helper;
|
||||
import com.jpexs.helpers.SerializableImage;
|
||||
import java.awt.Color;
|
||||
import java.awt.Font;
|
||||
@@ -394,7 +395,7 @@ public abstract class FontTag extends DrawableTag implements AloneTag {
|
||||
ret.put("chid", "" + getCharacterId());
|
||||
String fontName = getFontNameIntag();
|
||||
if (fontName != null) {
|
||||
ret.put("fn", fontName);
|
||||
ret.put("fn", "\"" + Helper.escapePCodeString(fontName) + "\"");
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ import com.jpexs.decompiler.flash.treeitems.TreeItem;
|
||||
import com.jpexs.decompiler.flash.types.RGB;
|
||||
import com.jpexs.decompiler.flash.types.RGBA;
|
||||
import com.jpexs.decompiler.flash.types.SOUNDINFO;
|
||||
import com.jpexs.helpers.Helper;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
@@ -161,7 +162,7 @@ public class Frame implements TreeItem, Exportable {
|
||||
List<String> labels = new ArrayList<>();
|
||||
for (Tag t : innerTags) {
|
||||
if (t instanceof FrameLabelTag) {
|
||||
labels.add(((FrameLabelTag) t).name);
|
||||
labels.add("\"" + Helper.escapePCodeString(((FrameLabelTag) t).name) + "\"");
|
||||
}
|
||||
}
|
||||
if (!labels.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user