Skip to content

Commit

Permalink
remove \n from f string
Browse files Browse the repository at this point in the history
  • Loading branch information
bckohan committed Jun 4, 2024
1 parent 3e97eac commit c22000b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion django_routines/management/commands/routines.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ def _list(self) -> None:
if not use_rich:
width = max([len(cmd) for cmd in command_strings])
ruler = f"[underline]{' ' * width}[/underline]\n" if use_rich else "-" * width
cmd_strings = f"{'[bright]' if use_rich else ''}{'\n'.join(command_strings)}{'[/bright]' if use_rich else ''}"
cmd_strings = "\n".join(command_strings)
cmd_strings = f"{'[bright]' if use_rich else ''}{cmd_strings}{'[/bright]' if use_rich else ''}"
help_txt = f"\b\n{routine.help_text}\n{ruler}\b\n\n{cmd_strings}\n"
grp = Command.group(help=help_txt, invoke_without_command=True)(locals()[name])

Expand Down
6 changes: 1 addition & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c22000b

Please sign in to comment.