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 |