Skip to content

Commit

Permalink
Un-break script doc checker
Browse files Browse the repository at this point in the history
This handles any number of empty lines above the title, including zero -
a harmless case which was breaking the build.
  • Loading branch information
PeridexisErrant committed Apr 15, 2016
1 parent eb34ff0 commit 205e5cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion travis/script-in-readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def check_file(fname):
else:
print('Error: no documentation in: ' + fname)
return 1
title, underline = doclines[1], doclines[2]
title, underline = [d for d in doclines if d and '=begin' not in d][:2]
if underline != '=' * len(title):
print('Error: title/underline mismatch:', fname, title, underline)
errors += 1
Expand Down

0 comments on commit 205e5cd

Please sign in to comment.