diff --git a/htmlreport/cppcheck-htmlreport b/htmlreport/cppcheck-htmlreport index b33699ca2ed..915fda97300 100755 --- a/htmlreport/cppcheck-htmlreport +++ b/htmlreport/cppcheck-htmlreport @@ -412,7 +412,7 @@ def filter_button(enabled_filters, id, function): enabled = enabled_filters.get(id, False) if not id: id = 'None' - return '\n '\ + return '\n '\ % (' disabled' if not enabled else '', function, id, 'checked' if enabled else 'disabled', id) def filter_bar(enabled): @@ -428,8 +428,8 @@ def filter_bar(enabled): , classification_bar ,''.join([filter_button(enabled, tool, 'toggleTool') for tool in ['cppcheck', 'clang-tidy']]) ,'\n | ' - ,'\n ' - ,'\n ' + ,'\n ' + ,'\n ' ,'\n \n']) def git_blame(errors, path, file, blame_options): last_line= errors[-1]['line'] @@ -837,8 +837,8 @@ def main() -> None: lexer = guess_lexer(content, stripnl=False) except ClassNotFound: sys.stderr.write("ERROR: Couldn't determine lexer for the file' " + source_filename + " '. Won't be able to syntax highlight this file.") - output_file.write("\n Could not generate content because pygments failed to determine the code type.") - output_file.write("\n Sorry about this.") + output_file.write("\n Could not generate content because pygments failed to determine the code type.") + output_file.write("\n Sorry about this.") continue if options.source_encoding: @@ -932,10 +932,10 @@ def main() -> None: htmlfile = data.get('htmlfile') if is_file else None output_file.write("\n ") - output_file.write("\n %s" % row_content) + output_file.write("\n %s" % row_content) if filename in decode_errors: - output_file.write("\n Could not generated due to UnicodeDecodeError") + output_file.write("\n Could not generated due to UnicodeDecodeError") sorted_errors = sorted(data['errors'], key=lambda k: k['line']) blame_data = git_blame(sorted_errors, source_dir, filename, blame_options) if add_author_information else []