Skip to content

Commit

Permalink
scripts/check-page-title: try to keep the output uniform
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiaanspeck committed Jan 3, 2025
1 parent b821956 commit a66186e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/check-page-title.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def check_page_title(path: Path) -> str:
command_name_page = normalize_command_name(get_page_title(path))

if command_name_file != command_name_page and command_name_page not in IGNORE_LIST:
return f"Inconsistency found in file: {path}: {command_name_page} should be {command_name_file}"
return f"title should be {command_name_file} instead of {command_name_page}"

return ""

Expand Down Expand Up @@ -118,7 +118,7 @@ def main():
rel_path = "/".join(path.parts[-3:])
status = check_page_title(path)
if status != "":
print(create_colored_line(Colors.RED, f"{rel_path} {status}"))
print(create_colored_line(Colors.RED, f"{rel_path}: {status}"))
return

# Use '--language' option
Expand Down

0 comments on commit a66186e

Please sign in to comment.