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