From 924c0a6aebeac80ca25ee1b4c769cf8ea6366b34 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 11 Jan 2014 10:17:29 +0530 Subject: [PATCH] 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) --- src/calibre/gui2/tweak_book/ui.py | 2 ++ 1 file changed, 2 insertions(+) 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)