mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Re commit 6b98fac: for some reason the \1 must be \\1 to get the "real" text.
This commit is contained in:
parent
6b98fac7c3
commit
f40f44cc29
@ -1847,9 +1847,10 @@ followed by the first letter of the genre, i.e. the genre "Fiction" becomes
|
|||||||
{}''').format('''\
|
{}''').format('''\
|
||||||
[CODE]
|
[CODE]
|
||||||
program:
|
program:
|
||||||
list_join('#@#', $authors, '&', list_re($#genre, ',', '^(.).*$', 'Genre: \1'), ',')
|
list_join('#@#', $authors, '&', list_re($#genre, ',', '^(.).*$', 'Genre: \\1'), ',')
|
||||||
[/CODE]
|
[/CODE]
|
||||||
''') # not translated as \1 gets mistranslated as a control char in transifex for some reason
|
''') # not translated as \1 gets mistranslated as a control char in transifex
|
||||||
|
# for some reason. And yes, the double backslash is required, for some reason.
|
||||||
|
|
||||||
def evaluate(self, formatter, kwargs, mi, locals, with_separator, *args):
|
def evaluate(self, formatter, kwargs, mi, locals, with_separator, *args):
|
||||||
if len(args) % 2 != 0:
|
if len(args) % 2 != 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user