diff --git a/mypy/stats.py b/mypy/stats.py index 89e56080cf79..35188e27229b 100644 --- a/mypy/stats.py +++ b/mypy/stats.py @@ -346,9 +346,9 @@ def generate_html_index(output_dir: str) -> None: style = 'class="red"' elif percent >= 5: style = 'class="yellow"' - append('%s%.1f%% imprecise%d LOC' % ( + append('%s%.1f%% imprecise%d LOC\n' % ( style, target_path, source_path, percent, num_lines)) - append('') + append('\n') append('') with open(path, 'w') as file: file.writelines(output)