mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix #2591 (Fix invalid escape sequence error)
This commit is contained in:
parent
b388a91180
commit
45727ceaa7
@ -32,7 +32,7 @@ from polyglot.builtins import unicode_type
|
|||||||
|
|
||||||
|
|
||||||
class Templite:
|
class Templite:
|
||||||
auto_emit = re.compile(r'''(^['"])|(^[a-zA-Z0-9_\[\]'"]+$)''')
|
auto_emit = re.compile(r'''(^['"])|(^[a-zA-Z0-9_[\]'"]+$)''')
|
||||||
|
|
||||||
def __init__(self, template, start='${', end='}$'):
|
def __init__(self, template, start='${', end='}$'):
|
||||||
if len(start) != 2 or len(end) != 2:
|
if len(start) != 2 or len(end) != 2:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user