--- a/eric6/Plugins/CheckerPlugins/SyntaxChecker/jsCheckSyntax.py Sat Apr 10 17:54:58 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/SyntaxChecker/jsCheckSyntax.py Sat Apr 10 18:31:17 2021 +0200 @@ -45,7 +45,7 @@ codestring = codestring.replace("\r\n", "\n").replace("\r", "\n") if codestring and codestring[-1] != '\n': - codestring = codestring + '\n' + codestring += '\n' return codestring