1

Better handling of spaces and line breaks in files

Former-commit-id: a3e47eb122cfbfc847f7aa324f0f9f7486f08d04
This commit is contained in:
Alex Yatskov 2013-11-16 12:08:08 -08:00
parent 6b761321f0
commit f8dda8d21a

View File

@ -451,7 +451,7 @@ class MainWindowReader(QtGui.QMainWindow, gen.reader_ui.Ui_MainWindowReader):
if lengthMatched <= 0: if lengthMatched <= 0:
break break
lengthSelect += 1 lengthSelect += 1
if c != u'\n': if c not in [u'\n', u' ', u' ']:
lengthMatched -= 1 lengthMatched -= 1
cursor.setPosition(samplePosStart, QtGui.QTextCursor.MoveAnchor) cursor.setPosition(samplePosStart, QtGui.QTextCursor.MoveAnchor)