Skip to content

Commit 4aafd62

Browse files
authored
Fix escape sequences. (#447)
1 parent 8b5900e commit 4aafd62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

v7/latex/latex/parser.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def __get_includegraphics(self, command):
414414
url = command[1][0].recombine_as_text()
415415
args = dict()
416416
if command[1][1] is not None:
417-
for argPair in re.split("\s*,\s*", command[1][1].recombine_as_text().strip()):
417+
for argPair in re.split(r"\s*,\s*", command[1][1].recombine_as_text().strip()):
418418
arg = argPair.split("=")
419419
assert len(arg) == 2
420420
args[arg[0].strip()] = arg[1].strip()
@@ -443,7 +443,7 @@ def __get_PSTricks_picture(self, command):
443443
break
444444
self.tokens.skip_current()
445445
content = self.tokens.get_substring(start, stop).strip()
446-
argsList = re.split("\s*,\s*", command[2][0].recombine_as_text().strip())
446+
argsList = re.split(r"\s*,\s*", command[2][0].recombine_as_text().strip())
447447
args = dict()
448448
for entry in argsList:
449449
entry = entry.split("=")

0 commit comments

Comments
 (0)