diff --git a/htmlreport/cppcheck-htmlreport b/htmlreport/cppcheck-htmlreport
index d43bd90e3..23ea0c7f6 100755
--- a/htmlreport/cppcheck-htmlreport
+++ b/htmlreport/cppcheck-htmlreport
@@ -118,6 +118,9 @@ HTML_HEAD = """
"""
@@ -304,7 +307,7 @@ if __name__ == '__main__':
(options.title,
#htmlFormatter.get_style_defs('.highlight'),
options.title))
-
+ output_file.write(HTML_HEAD_END)
lexer = guess_lexer_for_filename(source_filename, '')
if options.source_encoding:
lexer.encoding = options.source_encoding
@@ -323,6 +326,7 @@ if __name__ == '__main__':
with io.open(os.path.join(options.report_dir, 'index.html'),
'w') as output_file:
output_file.write(HTML_HEAD % (options.title, options.title))
+ output_file.write(HTML_HEAD_END)
output_file.write('
\n')
output_file.write(
' Line | Id | Severity | Message |
')