From 457e06dbc2590654d274eb5986f5751b5d83403e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 3 May 2022 11:49:03 +0530 Subject: [PATCH] ... --- src/calibre/utils/formatter_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/formatter_functions.py b/src/calibre/utils/formatter_functions.py index 2a10595b4a..19cee4e652 100644 --- a/src/calibre/utils/formatter_functions.py +++ b/src/calibre/utils/formatter_functions.py @@ -1414,7 +1414,7 @@ class BuiltinListJoin(BuiltinFormatterFunction): "the first letter of the genre, i.e. the genre 'Fiction' " "becomes 'Genre: F'. The following will do that\n" " program:\n" - " list_join('#@#', $authors, '&', list_re($#genre, ',', '^(.).*$', 'Genre: \1'), ',')") + " list_join('#@#', $authors, '&', list_re($#genre, ',', '^(.).*$', 'Genre: \\1'), ',')") def evaluate(self, formatter, kwargs, mi, locals, with_separator, *args): if len(args) % 2 != 0: