eric6/Utilities/ClassBrowsers/jsclbr.py

changeset 7676
0f67b4562d98
parent 7360
9190402e4505
child 7685
0b6e8c0d6403
--- a/eric6/Utilities/ClassBrowsers/jsclbr.py	Mon Aug 24 18:12:22 2020 +0200
+++ b/eric6/Utilities/ClassBrowsers/jsclbr.py	Tue Aug 25 14:53:43 2020 +0200
@@ -313,6 +313,8 @@
         # can't do anything with this module
         _modules[module] = dictionary
         return dictionary
+    # convert eol markers the Python style
+    src = src.replace("\r\n", "\n").replace("\r", "\n")
     
     visitor = Visitor(src, module, file)
     dictionary = visitor.parse()

eric ide

mercurial