Un-break script doc checker

This handles any number of empty lines above the title, including zero -
a harmless case which was breaking the build.
develop
PeridexisErrant 2016-04-15 16:51:24 +10:00
parent eb34ff0cd6
commit 205e5cd371
1 changed files with 1 additions and 1 deletions

@ -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