Skip to content

Commit 7dc1d0f

Browse files
committed
Insert newlines in HTML report
This makes it easier to diff two reports, for example.
1 parent 8c16820 commit 7dc1d0f

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
@@ -346,9 +346,9 @@ def generate_html_index(output_dir: str) -> None:
346346
style = 'class="red"'
347347
elif percent >= 5:
348348
style = 'class="yellow"'
349-
append('<tr %s><td><a href="%s">%s</a><td>%.1f%% imprecise<td>%d LOC' % (
349+
append('<tr %s><td><a href="%s">%s</a><td>%.1f%% imprecise<td>%d LOC\n' % (
350350
style, target_path, source_path, percent, num_lines))
351-
append('</table>')
351+
append('</table>\n')
352352
append('</body></html>')
353353
with open(path, 'w') as file:
354354
file.writelines(output)

0 commit comments

Comments
 (0)