Skip to content

Commit 0b7ee88

Browse files
committed
Merge pull request #860 from sanxiyn/html-newlines
Insert newlines in HTML report
2 parents 48a27f6 + 7dc1d0f commit 0b7ee88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/stats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,9 @@ def generate_html_index(output_dir: str) -> None:
349349
style = 'class="red"'
350350
elif percent >= 5:
351351
style = 'class="yellow"'
352-
append('<tr %s><td><a href="%s">%s</a><td>%.1f%% imprecise<td>%d LOC' % (
352+
append('<tr %s><td><a href="%s">%s</a><td>%.1f%% imprecise<td>%d LOC\n' % (
353353
style, target_path, source_path, percent, num_lines))
354-
append('</table>')
354+
append('</table>\n')
355355
append('</body></html>')
356356
with open(path, 'w') as file:
357357
file.writelines(output)

0 commit comments

Comments
 (0)