diff --git a/htmlreport/cppcheck-htmlreport b/htmlreport/cppcheck-htmlreport
index 182cf2d1d..d43bd90e3 100755
--- a/htmlreport/cppcheck-htmlreport
+++ b/htmlreport/cppcheck-htmlreport
@@ -110,9 +110,6 @@ HTML_HEAD = """
@@ -305,7 +302,7 @@ if __name__ == '__main__':
'w') as output_file:
output_file.write(HTML_HEAD %
(options.title,
- htmlFormatter.get_style_defs('.highlight'),
+ #htmlFormatter.get_style_defs('.highlight'),
options.title))
lexer = guess_lexer_for_filename(source_filename, '')
@@ -325,13 +322,13 @@ if __name__ == '__main__':
print('Creating index.html')
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('
')
+ output_file.write(HTML_HEAD % (options.title, options.title))
+ output_file.write(' \n')
output_file.write(
- 'Line | Id | Severity | Message |
')
+ ' Line | Id | Severity | Message |
')
for filename, data in sorted(files.items()):
output_file.write(
- "%s |
" %
+ "\n %s |
" %
(data['htmlfile'], filename))
for error in data['errors']:
if error['severity'] == 'error':
@@ -341,15 +338,15 @@ if __name__ == '__main__':
if error['id'] == 'missingInclude':
output_file.write(
- ' | %s | %s | %s |
' %
+ '\n | %s | %s | %s |
' %
(error['id'], error['severity'], error['msg']))
else:
output_file.write(
- "%d | %s | %s | %s |
" %
+ "\n %d | %s | %s | %s |
" %
(data['htmlfile'], error['line'], error['line'],
error['id'], error['severity'], error_class,
error['msg']))
- output_file.write('
')
+ output_file.write('\n
')
output_file.write(HTML_FOOTER % contentHandler.versionCppcheck)
print('Creating style.css file')