eric6/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheck.py

changeset 8217
385f60c94548
parent 8205
4a0f1f896341
child 8234
fcb6b4b96274
diff -r 6a042a54e0f7 -r 385f60c94548 eric6/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheck.py
--- a/eric6/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheck.py	Sat Apr 10 17:54:58 2021 +0200
+++ b/eric6/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheck.py	Sat Apr 10 18:31:17 2021 +0200
@@ -60,7 +60,7 @@
     codestring = codestring.replace("\r\n", "\n").replace("\r", "\n")
 
     if codestring and codestring[-1] != '\n':
-        codestring = codestring + '\n'
+        codestring += '\n'
     
     return codestring
 

eric ide

mercurial