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(_) {