mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
da1648b94d
commit
924c0a6aeb
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user