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 @@ def update_position(self, line=None, col=None, character=None):
except Exception:
name = None
text = _('Line: {0} : {1}').format(line, col)
if not name:
name = {'\t':'TAB'}.get(character, None)
if name:
text = name + ' : ' + text
self.la.setText(text)