diff --git a/yomi_base/reader.py b/yomi_base/reader.py index 02c66e9..1470ba9 100644 --- a/yomi_base/reader.py +++ b/yomi_base/reader.py @@ -451,7 +451,7 @@ class MainWindowReader(QtGui.QMainWindow, gen.reader_ui.Ui_MainWindowReader): if lengthMatched <= 0: break lengthSelect += 1 - if c != u'\n': + if c not in [u'\n', u' ', u' ']: lengthMatched -= 1 cursor.setPosition(samplePosStart, QtGui.QTextCursor.MoveAnchor)