Edit book: Fix tab characters not being identified in the lower right corner. Fixes #1267980 [Edit Book: Tabs are not identified in the lower left corner](https://bugs.launchpad.net/calibre/+bug/1267980)

This commit is contained in:
Kovid Goyal 2014-01-11 10:17:29 +05:30
parent da1648b94d
commit 924c0a6aeb

View File

@ -191,6 +191,8 @@ class CursorPositionWidget(QWidget): # {{{
except Exception: except Exception:
name = None name = None
text = _('Line: {0} : {1}').format(line, col) text = _('Line: {0} : {1}').format(line, col)
if not name:
name = {'\t':'TAB'}.get(character, None)
if name: if name:
text = name + ' : ' + text text = name + ' : ' + text
self.la.setText(text) self.la.setText(text)