diff --git a/htmlreport/cppcheck-htmlreport b/htmlreport/cppcheck-htmlreport index ed31abcf8..a1b0e9644 100755 --- a/htmlreport/cppcheck-htmlreport +++ b/htmlreport/cppcheck-htmlreport @@ -21,10 +21,17 @@ with syntax highlighted source code. STYLE_FILE = """ body { - background-color: black; font: 13px Arial, Verdana, Sans-Serif; margin: 0; - padding: 0; + width: auto; +} + +h1 { + margin: 10px; +} + +#footer > p { + margin: 4px; } .error { @@ -42,18 +49,6 @@ body { padding: 1px; } -#page { - background-color: white; - border: 2px solid #aaa; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; - margin: 10px; - overflow: auto; - padding: 5px 10px; - width: auto; -} - #header { border-bottom: thin solid #aaa; } @@ -122,9 +117,11 @@ HTML_HEAD = """ Cppcheck - HTML report - %s + -
@@ -142,15 +139,13 @@ HTML_FOOTER = """
- """ @@ -318,7 +313,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, filename)) @@ -343,7 +338,7 @@ 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(HTML_HEAD % (options.title, '', options.title, '')) output_file.write(HTML_HEAD_END) output_file.write(' \n') output_file.write(