diff --git a/src/calibre/gui2/tag_mapper.py b/src/calibre/gui2/tag_mapper.py
index e65268a00c..83969d90d9 100644
--- a/src/calibre/gui2/tag_mapper.py
+++ b/src/calibre/gui2/tag_mapper.py
@@ -16,7 +16,7 @@ from PyQt5.Qt import (
)
from calibre.ebooks.metadata.tag_mapper import map_tags, compile_pat
-from calibre.gui2 import error_dialog, elided_text, Application, question_dialog
+from calibre.gui2 import error_dialog, Application, question_dialog
from calibre.gui2.ui import get_gui
from calibre.gui2.widgets2 import Dialog
from calibre.utils.config import JSONConfig
@@ -224,7 +224,7 @@ class RuleItem(QListWidgetItem):
@staticmethod
def text_from_rule(rule, parent):
- query = elided_text(rule['query'], font=parent.font(), width=200, pos='right')
+ query = rule['query']
text = _(
'{action} the tag, if it {match_type}: {query}').format(
action=RuleEdit.ACTION_MAP[rule['action']], match_type=RuleEdit.MATCH_TYPE_MAP[rule['match_type']], query=query)
@@ -232,7 +232,7 @@ class RuleItem(QListWidgetItem):
text += '
' + _('with the tag:') + ' %s' % rule['replace']
if rule['action'] == 'split':
text += '
' + _('on the character:') + ' %s' % rule['replace']
- return text
+ return '