Fixed: Metadata formatting

This commit is contained in:
Jindra Petřík
2026-02-15 22:10:55 +01:00
parent 86e3d0dad7
commit f8194efdad
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
### Added
- [#1209], [#1850], [#2619] Debugging SWF in the web browser
### Fixed
- Metadata formatting
## [25.0.0] - 2026-02-10
### Added
- [#2610] Export morphshapes - export individual frames, setting of morph

View File

@@ -1826,7 +1826,8 @@ public class PreviewPanel extends JPersistentSplitPane implements TagEditorPanel
}
public static String formatMetadata(String input, int indent) {
input = input.replace("> <", "><");
input = input.replaceAll("\r?\n", "");
input = input.replaceAll("> +<", "><");
try {
Source xmlInput = new StreamSource(new StringReader(input));
StringWriter stringWriter = new StringWriter();