diff --git a/htmlreport/cppcheck-htmlreport b/htmlreport/cppcheck-htmlreport index ce9690d71..e24cf1b6f 100755 --- a/htmlreport/cppcheck-htmlreport +++ b/htmlreport/cppcheck-htmlreport @@ -29,16 +29,17 @@ body { .error { background-color: #ffb7b7; - margin: 0; - padding: 0; } .error2 { background-color: #faa; border: 1px dotted black; + display: inline-block; margin-left: 4px; - margin-top: 4px; - padding: 1px +} + +.highlight .hll { + padding: 1px; } #page { @@ -71,6 +72,9 @@ body { } #content { + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; border-left: thin solid #aaa; float: left; margin: 5px; @@ -80,7 +84,7 @@ body { .linenos { border-right: thin solid #aaa; - color: #bbb; + color: lightgray; padding-right: 6px; } @@ -136,7 +140,7 @@ HTML_FOOTER = """ """ -HTML_ERROR = "<--- %s\n" +HTML_ERROR = "<--- %s\n" class AnnotateCodeFormatter(HtmlFormatter): @@ -302,7 +306,7 @@ if __name__ == '__main__': stream.write("") stream.write("") for filename, data in files.items(): - stream.write("" % (data["htmlfile"], filename)) + stream.write("" % (data["htmlfile"], filename)) for error in data["errors"]: if error['severity'] == 'error': error_class = 'class="error"'
LineIdSeverityMessage
%s
%s