From cb50c92d084304b7f8c33cd92de9aed6eb7c4cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Sun, 1 Jun 2014 00:12:58 +0200 Subject: [PATCH] htmlreport: splitup HTML_HEAD where we want to insert the list of errors. --- htmlreport/cppcheck-htmlreport | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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( ' ')
LineIdSeverityMessage