Skip to content

Commit

Permalink
Bugfix for pythontex.py (actually fixes #1; the previous fix was need…
Browse files Browse the repository at this point in the history
…ed but did not fix the specific behavior observed).
  • Loading branch information
gpoore committed May 10, 2012
1 parent 8a05f5d commit e064b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pythontex/pythontex.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ def do_pygments(outputdir, jobname, saveverbatim_threshold, oldsaveverbatim_thre
#We need to let the user know we are switching code files
print('\n---- Errors for '+basename+' ----')
for errline in errfile:
if errline.find(basename) and search('line \d+',errline):
if basename in errline and search('line \d+',errline):
errorcount+=1
#Offset by one for zero indexing, one for previous line
errlinenumber=int(search('line (\d+)',errline).groups()[0])-2
Expand Down

0 comments on commit e064b10

Please sign in to comment.