diff --git a/htmlreport/cppcheck-htmlreport b/htmlreport/cppcheck-htmlreport
index 2bafd2906..40424cc78 100755
--- a/htmlreport/cppcheck-htmlreport
+++ b/htmlreport/cppcheck-htmlreport
@@ -23,6 +23,14 @@ body.body {
margin: 0px;
}
+.error {
+ font-family: Arial;
+ font-size: 13px;
+ background-color: #ffb7b7;
+ padding: 0px;
+ margin: 0px;
+}
+
#page-header {
clear: both;
width: 900px;
@@ -301,13 +309,18 @@ if __name__ == '__main__':
for filename, data in files.items():
stream.write("
%s |
" % (data["htmlfile"], filename))
for error in data["errors"]:
+ if error['severity'] == 'error':
+ error_class = 'class="error"'
+ else:
+ error_class = ''
+
if error["id"] == "missingInclude":
stream.write(" | %s | %s | %s |
" %
(error["id"], error["severity"], error["msg"]))
else:
- stream.write("%d | %s | %s | %s |
" %
+ stream.write("%d | %s | %s | %s |
" %
(data["htmlfile"], error["line"], error["line"], error["id"],
- error["severity"], error["msg"]))
+ error["severity"], error_class, error["msg"]))
stream.write("")
stream.write(HTML_FOOTER)
stream.close()