diff --git a/jadx-core/src/main/java/jadx/api/impl/SimpleCodeWriter.java b/jadx-core/src/main/java/jadx/api/impl/SimpleCodeWriter.java index 4b955673f0d..2873d87291a 100644 --- a/jadx-core/src/main/java/jadx/api/impl/SimpleCodeWriter.java +++ b/jadx-core/src/main/java/jadx/api/impl/SimpleCodeWriter.java @@ -44,7 +44,7 @@ public SimpleCodeWriter(JadxArgs args) { public SimpleCodeWriter() { this.insertLineNumbers = false; this.singleIndentStr = JadxArgs.DEFAULT_INDENT_STR; - this.newLineStr = JadxArgs.DEFAULT_INDENT_STR; + this.newLineStr = JadxArgs.DEFAULT_NEW_LINE_STR; } @Override diff --git a/jadx-gui/src/main/java/jadx/gui/device/debugger/smali/SmaliWriter.java b/jadx-gui/src/main/java/jadx/gui/device/debugger/smali/SmaliWriter.java index 16bec2af8b3..783b4031f0b 100644 --- a/jadx-gui/src/main/java/jadx/gui/device/debugger/smali/SmaliWriter.java +++ b/jadx-gui/src/main/java/jadx/gui/device/debugger/smali/SmaliWriter.java @@ -11,6 +11,7 @@ public class SmaliWriter extends SimpleCodeWriter { private final ClassNode cls; public SmaliWriter(ClassNode cls) { + super(cls.root().getArgs()); this.cls = cls; }