Skip to content

Commit

Permalink
Fix to not regard \% as beginning of a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
TMueller83 authored Sep 4, 2019
1 parent eae4992 commit 3211cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ uses_sagetex = False
# if it doesn't use sagetex, obviously running sage is unnecessary
with open(src + '.tex') as texf:
for line in texf:
if re.search(usepackage, line.split('%')[0]):
if re.search(usepackage, line.replace(r'\%', '').split('%')[0]):
uses_sagetex = True
break

Expand Down

0 comments on commit 3211cff

Please sign in to comment.