Fixed AS3 Metadata in P-code formatting

This commit is contained in:
Jindra Petřík
2023-02-28 21:43:38 +01:00
parent aee2f18016
commit e17c8c202e
2 changed files with 3 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file.
- AS3 direct editation - Allow comma operator in switch expressions
- AS3 XML embedded variables display and direct edit
- AS3 Metadata values order
- AS3 Metadata in P-code formatting
## [18.3.6] - 2023-02-25
### Fixed

View File

@@ -417,9 +417,9 @@ public abstract class Trait implements Cloneable, Serializable {
writer.hilightSpecial("0x8", HighlightSpecialType.ATTR_0x8);
}
if ((kindFlags & ATTR_Metadata) > 0) {
writer.newLine();
for (int m : metadata) {
writer.append("metadata");
writer.newLine();
writer.append("metadata ");
writer.append("\"");
writer.append(Helper.escapePCodeString(abc.constants.getString(abc.metadata_info.get(m).name_index)));
writer.append("\"");