Skip to content

Commit

Permalink
Merge branch 'FixParseBug' of https://github.com/charlesbaynham/LaTeX…
Browse files Browse the repository at this point in the history
…Tools into develop
  • Loading branch information
ig0774 committed Mar 29, 2018
2 parents 48de124 + 16ec7bf commit 9ac6b56
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions parseTeXlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,15 +282,18 @@ def handle_badbox(l):
if file_match:
debug("MATCHED (long line)")
file_name = file_match.group(1)
file_name = os.path.normpath(file_name.strip('"'))

# remove quotes if necessary, but first save the count for a later check
quotecount = file_name.count("\"")
file_name = file_name.replace("\"", "")

# Normalize the file path
file_name = os.path.normpath(file_name)
if not os.path.isabs(file_name):
file_name = os.path.normpath(os.path.join(root_dir, file_name))

file_extra = file_match.group(2) + file_match.group(3) # don't call it "extra"
# remove quotes if necessary, but first save the count for a later check
quotecount = file_name.count("\"")
file_name = file_name.replace("\"", "")

# NOTE: on TL201X pdftex sometimes writes "pdfTeX warning" right after file name
# This may or may not be a stand-alone long line, but in any case if we
# extend, the file regex will fire regularly
Expand Down

0 comments on commit 9ac6b56

Please sign in to comment.