Skip to content

Commit

Permalink
Fix escape sequences. (#447)
Browse files Browse the repository at this point in the history
felixfontein authored Nov 2, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 8b5900e commit 4aafd62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v7/latex/latex/parser.py
Original file line number Diff line number Diff line change
@@ -414,7 +414,7 @@ def __get_includegraphics(self, command):
url = command[1][0].recombine_as_text()
args = dict()
if command[1][1] is not None:
for argPair in re.split("\s*,\s*", command[1][1].recombine_as_text().strip()):
for argPair in re.split(r"\s*,\s*", command[1][1].recombine_as_text().strip()):
arg = argPair.split("=")
assert len(arg) == 2
args[arg[0].strip()] = arg[1].strip()
@@ -443,7 +443,7 @@ def __get_PSTricks_picture(self, command):
break
self.tokens.skip_current()
content = self.tokens.get_substring(start, stop).strip()
argsList = re.split("\s*,\s*", command[2][0].recombine_as_text().strip())
argsList = re.split(r"\s*,\s*", command[2][0].recombine_as_text().strip())
args = dict()
for entry in argsList:
entry = entry.split("=")

0 comments on commit 4aafd62

Please sign in to comment.