From 5656ecdd931f95be9ffeb0994397042b479f8c76 Mon Sep 17 00:00:00 2001 From: Chronic x3 <126361810+chronicsilly@users.noreply.github.com> Date: Thu, 17 Jul 2025 15:41:51 +0100 Subject: [PATCH] prettyprint option on stage xmls --- source/funkin/editors/stage/StageEditor.hx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/funkin/editors/stage/StageEditor.hx b/source/funkin/editors/stage/StageEditor.hx index da9c8518..4e84894e 100644 --- a/source/funkin/editors/stage/StageEditor.hx +++ b/source/funkin/editors/stage/StageEditor.hx @@ -718,9 +718,8 @@ class StageEditor extends UIState { } } - Logs.trace(Printer.print(xml, true)); - - return "\n" + Printer.print(xml, true); + var xmlThingYea:String = "\n" + Printer.print(xml, Options.editorPrettyPrint); + return Options.editorPrettyPrint ? xmlThingYea : xmlThingYea.replace("\n", ""); } function _edit_undo(_) {