diff --git a/htmlreport/cppcheck-htmlreport b/htmlreport/cppcheck-htmlreport index 1db5c70fd..20f848dad 100755 --- a/htmlreport/cppcheck-htmlreport +++ b/htmlreport/cppcheck-htmlreport @@ -590,27 +590,20 @@ if __name__ == '__main__': if error['severity'] == 'error': error_class = 'class="error"' if error['id'] == 'missingInclude': - output_file.write( - '\n %s%s%s' % - (error['id'], error['severity'], error['msg'])) + output_file.write( + '\n %s%s%s' % + (error['id'], error['severity'], error['msg'])) elif (error['id'] == 'unmatchedSuppression') and filename.endswith('*'): output_file.write( - "\n %s%s%s" % + '\n %s%s%s' % (error['id'], error['severity'], error_class, error['msg'])) else: - if cwe_url: - output_file.write( - "\n %d%s%s%s%s" % - (data['htmlfile'], error['line'], error['line'], - error['id'], cwe_url, error['severity'], error_class, - error['msg'])) - else: - output_file.write( - "\n %d%s%s%s" % - (data['htmlfile'], error['line'], error['line'], - error['id'], error['severity'], error_class, - error['msg'])) + output_file.write( + '\n %d%s%s%s%s' % + (data['htmlfile'], error['line'], error['line'], + error['id'], cwe_url, error['severity'], error_class, + error['msg'])) output_file.write('\n ') output_file.write(HTML_FOOTER % contentHandler.versionCppcheck)