htmlreport: fix syntax highlighting broken in ca4a0af840.

This commit is contained in:
Matthias Krüger 2014-06-05 22:09:28 +02:00
parent 8fe515b929
commit 275e2501ff
1 changed files with 5 additions and 2 deletions

View File

@ -122,6 +122,9 @@ HTML_HEAD = """
<meta charset="utf-8"> <meta charset="utf-8">
<title>Cppcheck - HTML report - %s</title> <title>Cppcheck - HTML report - %s</title>
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
<style>
%s
</style>
</head> </head>
<body> <body>
<div id="page"> <div id="page">
@ -318,7 +321,7 @@ if __name__ == '__main__':
'w') as output_file: 'w') as output_file:
output_file.write(HTML_HEAD % output_file.write(HTML_HEAD %
(options.title, (options.title,
#htmlFormatter.get_style_defs('.highlight'), htmlFormatter.get_style_defs('.highlight'),
options.title, options.title,
filename)) filename))
@ -343,7 +346,7 @@ if __name__ == '__main__':
print('Creating index.html') print('Creating index.html')
with io.open(os.path.join(options.report_dir, 'index.html'), with io.open(os.path.join(options.report_dir, 'index.html'),
'w') as output_file: 'w') as output_file:
output_file.write(HTML_HEAD % (options.title, options.title, '')) output_file.write(HTML_HEAD % (options.title, '', options.title, ''))
output_file.write(HTML_HEAD_END) output_file.write(HTML_HEAD_END)
output_file.write(' <table>\n') output_file.write(' <table>\n')
output_file.write( output_file.write(