diff --git a/src/calibre/utils/formatter_functions.py b/src/calibre/utils/formatter_functions.py index 20ec80e7b3..f786273bcf 100644 --- a/src/calibre/utils/formatter_functions.py +++ b/src/calibre/utils/formatter_functions.py @@ -2651,7 +2651,7 @@ class BuiltinIsDarkMode(BuiltinFormatterFunction): "in dark mode, '' (the empty string) otherwise. This " "function can be used in advanced color and icon rules " "to choose different colors/icons according to the mode. " - "Example: if is_dark_mode() then 'dark.png' else 'light.png' fi ") + "Example: {} ").format("if is_dark_mode() then 'dark.png' else 'light.png' fi") def evaluate(self, formatter, kwargs, mi, locals): try: