Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjayankur31 committed Feb 28, 2016
1 parent 2dd9f33 commit 8efd9c6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions zaphod.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def get_latex_files(self):
def get_modified_latex_files(self):
"""Get list of files with latexdiff annotations."""
filelist = []
modifield_filelist = []
modified_filelist = []
for root, dirs, files in os.walk(self.optionsDict['subdir']):
for filename in fnmatch.filter(files, "*.tex"):
if filename not in filelist:
Expand Down Expand Up @@ -488,11 +488,12 @@ def get_modified_latex_files(self):
else:
add_start = addcheck.start()

# If both are at EOL remove from file list
# Only add to filelist if both aren't EOL (no latexdiff annotations
# if they are)
if not add_start == del_start:
modifield_filelist += [filetorevise]
modified_filelist += [filetorevise]

return modifield_filelist
return modified_filelist

def generate_rev_filenames(self, rev):
"""Rename files as required for diff."""
Expand Down

0 comments on commit 8efd9c6

Please sign in to comment.