From 4aafd6214a077cf3b2f340cb9e7eea42996a95be Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 2 Nov 2024 20:31:51 +0100 Subject: [PATCH] Fix escape sequences. (#447) --- v7/latex/latex/parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v7/latex/latex/parser.py b/v7/latex/latex/parser.py index efea2d7c..43b9f8fb 100644 --- a/v7/latex/latex/parser.py +++ b/v7/latex/latex/parser.py @@ -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("=")