This commit is contained in:
Kovid Goyal 2022-05-03 11:49:03 +05:30
parent 48647c76dd
commit 457e06dbc2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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: