eric6/Plugins/CheckerPlugins/SyntaxChecker/yamlCheckSyntax.py

changeset 8217
385f60c94548
parent 7923
91e843545d9a
equal deleted inserted replaced
8216:6a042a54e0f7 8217:385f60c94548
41 @rtype str 41 @rtype str
42 """ 42 """
43 codestring = codestring.replace("\r\n", "\n").replace("\r", "\n") 43 codestring = codestring.replace("\r\n", "\n").replace("\r", "\n")
44 44
45 if codestring and codestring[-1] != '\n': 45 if codestring and codestring[-1] != '\n':
46 codestring = codestring + '\n' 46 codestring += '\n'
47 47
48 return codestring 48 return codestring
49 49
50 50
51 def yamlSyntaxCheck(file, codestring): 51 def yamlSyntaxCheck(file, codestring):

eric ide

mercurial