diff --git a/CHANGELOG.md b/CHANGELOG.md index 131035fc8..14d855805 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/com/jpexs/decompiler/flash/gui/PreviewPanel.java b/src/com/jpexs/decompiler/flash/gui/PreviewPanel.java index a548fdbdd..f1739aec8 100644 --- a/src/com/jpexs/decompiler/flash/gui/PreviewPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/PreviewPanel.java @@ -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();