Skip to content

Commit 2ceb8fe

Browse files
committed
html-report.py: fix file reading bug
1 parent a5fff32 commit 2ceb8fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html-report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def file2map(filepath, sep=' '):
2525
pairs = [
2626
line.strip().split(sep, 1)
2727
for line in f.readlines()
28-
if not line == "" and not line.startswith("#")
28+
if not line.strip() == "" and not line.startswith("#")
2929
]
3030
return {pair[0]: pair[1] for pair in pairs}
3131

0 commit comments

Comments
 (0)