eric7/QScintilla/QsciScintillaCompat.py

branch
eric7
changeset 8437
3408f5174e2f
parent 8324
83084f088655
child 8481
02865597d820
equal deleted inserted replaced
8435:f3554a0a34ca 8437:3408f5174e2f
699 Public method to set the eol mode given the eol string. 699 Public method to set the eol mode given the eol string.
700 700
701 @param eolStr eol string (string) 701 @param eolStr eol string (string)
702 """ 702 """
703 if eolStr == '\r\n': 703 if eolStr == '\r\n':
704 self.setEolMode( 704 self.setEolMode(QsciScintilla.EolMode.EolWindows)
705 QsciScintilla.EolMode(QsciScintilla.EolMode.EolWindows))
706 elif eolStr == '\n': 705 elif eolStr == '\n':
707 self.setEolMode( 706 self.setEolMode(QsciScintilla.EolMode.EolUnix)
708 QsciScintilla.EolMode(QsciScintilla.EolMode.EolUnix))
709 elif eolStr == '\r': 707 elif eolStr == '\r':
710 self.setEolMode( 708 self.setEolMode(QsciScintilla.EolMode.EolMac)
711 QsciScintilla.EolMode(QsciScintilla.EolMode.EolMac))
712 709
713 def detectEolString(self, txt): 710 def detectEolString(self, txt):
714 """ 711 """
715 Public method to determine the eol string used. 712 Public method to determine the eol string used.
716 713

eric ide

mercurial