From 7aefaf37ed97b8a301e9c0b16ea5e0d3b0da48cd Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Fri, 4 Aug 2023 09:47:53 +0200 Subject: [PATCH] classlib: fix issue in PrintStream.println Fix #726 --- .../main/java/org/teavm/classlib/java/io/TPrintStream.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classlib/src/main/java/org/teavm/classlib/java/io/TPrintStream.java b/classlib/src/main/java/org/teavm/classlib/java/io/TPrintStream.java index 431e80fd3..bfeed1305 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/io/TPrintStream.java +++ b/classlib/src/main/java/org/teavm/classlib/java/io/TPrintStream.java @@ -208,12 +208,12 @@ public class TPrintStream extends TFilterOutputStream { } public void println(char c) { - sb.append(c); + sb.append(c).append('\n'); printSB(); } public void println(boolean b) { - sb.append(b); + sb.append(b).append('\n'); printSB(); }