43 @return normalized code (string) |
43 @return normalized code (string) |
44 """ |
44 """ |
45 codestring = codestring.replace("\r\n", "\n").replace("\r", "\n") |
45 codestring = codestring.replace("\r\n", "\n").replace("\r", "\n") |
46 |
46 |
47 if codestring and codestring[-1] != '\n': |
47 if codestring and codestring[-1] != '\n': |
48 codestring = codestring + '\n' |
48 codestring += '\n' |
49 |
49 |
50 return codestring |
50 return codestring |
51 |
51 |
52 |
52 |
53 def jsSyntaxCheck(file, codestring): |
53 def jsSyntaxCheck(file, codestring): |