mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-01-04 11:10:20 -05:00
Bug: the formatter instantiated by the DB layer did not include the formatter function aliases.
This commit is contained in:
parent
68bc3cb2cb
commit
7b14dc8ba6
@ -491,7 +491,7 @@ class DB(object):
|
||||
|
||||
def set_user_template_functions(self, user_formatter_functions):
|
||||
self._user_template_functions = user_formatter_functions
|
||||
self._template_functions = formatter_functions().get_builtins().copy()
|
||||
self._template_functions = formatter_functions().get_builtins_and_aliases().copy()
|
||||
self._template_functions.update(user_formatter_functions)
|
||||
|
||||
def initialize_prefs(self, default_prefs, restore_all_prefs, progress_callback): # {{{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user