diff --git a/src/calibre/gui2/tweak_book/ui.py b/src/calibre/gui2/tweak_book/ui.py index 81f0134c3c..5c1ad54d62 100644 --- a/src/calibre/gui2/tweak_book/ui.py +++ b/src/calibre/gui2/tweak_book/ui.py @@ -191,6 +191,8 @@ class CursorPositionWidget(QWidget): # {{{ 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)