[英]How can I stop IntelliJ IDEA printing an empty new line?
I am following the Atomic Kotlin course.我正在学习 Atomic Kotlin 课程。 I have understood the concept and my output is correct, however Intellij IDEA complains that the outputs are different.
我已经理解了这个概念并且我的输出是正确的,但是 Intellij IDEA 抱怨输出不同。 Even when I copy and paste from the answer.
即使我从答案中复制和粘贴。 Please see screenshot.
请看截图。
I have tried using the print()
method instead of println()
, but it didn't help.我尝试使用
print()
方法而不是println()
,但没有帮助。
There is a straightforward workaround on how one can avoid this problem.关于如何避免此问题,有一种简单的解决方法。 Changing the
AtomicKotlin/Programming Basics/Data Types/Exercise 2/test/output.txt
manually to add a new line at the end of the text should fix the test. AtomicKotlin/Programming Basics/Data Types/Exercise 2/test/output.txt
更改AtomicKotlin/Programming Basics/Data Types/Exercise 2/test/output.txt
以在文本末尾添加新行应该可以修复测试。
I've also found a YouTrack ticket with the problem description.我还找到了一张带有问题描述的YouTrack 票。 According to it, EduTools 4.2 version release should fix it.
根据它,EduTools 4.2 版本发布应该修复它。 Maybe it worth to upvote or comment on the ticket.
也许值得对票进行投票或评论。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.