Skip to content

Commit

Permalink
Fix backslash interpretation in strings
Browse files Browse the repository at this point in the history
  • Loading branch information
norbusan committed May 1, 2024
1 parent 419ba39 commit 0f12e8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tex2pdf_service/tex2pdf/tex_patching.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ def remove_auto_pst_pdf(line: str) -> str:


def set_overleafhome_and_homepath(line: str) -> str:
"""If you find a tex line setting \overleafhome, set \homepath as well
"""If you find a tex line setting \\overleafhome, set \\homepath as well
"""
if line.find("\def\overleafhome{") != -1:
if line.find(r"\def\overleafhome{") != -1:
matched = re.search(r"\\overleafhome\{([^}]*)\}", line)
if matched:
home = matched.group(1)
Expand Down

0 comments on commit 0f12e8a

Please sign in to comment.