diff --git a/src/calibre/gui2/dialogs/template_dialog.py b/src/calibre/gui2/dialogs/template_dialog.py index e95843e3cc..38af32245c 100644 --- a/src/calibre/gui2/dialogs/template_dialog.py +++ b/src/calibre/gui2/dialogs/template_dialog.py @@ -235,6 +235,7 @@ translate_table = str.maketrans({ '\\': '\\\\', }) + class TemplateDialog(QDialog, Ui_TemplateDialog): def __init__(self, parent, text, mi=None, fm=None, color_field=None, diff --git a/src/calibre/utils/formatter.py b/src/calibre/utils/formatter.py index 5389e4be1f..1b8674c337 100644 --- a/src/calibre/utils/formatter.py +++ b/src/calibre/utils/formatter.py @@ -1075,6 +1075,7 @@ class _Interpreter(object): 'tab': '\t', 'backslash': '\\', } + def do_node_character(self, prog): try: key = self.expr(prog.expression)