Skip to content

Commit

Permalink
Add support for a small (3-char) comment on debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jrha committed Mar 11, 2020
1 parent ca0ca12 commit c5b1947
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pan_indent_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@


# Command line Debugging
DEBUG_LINE = Fore.CYAN + "%-16s " + Fore.MAGENTA + "|" + Fore.YELLOW + " %s" + Fore.RESET
DEBUG_LINE = Fore.CYAN + "%-16s %3s " + Fore.MAGENTA + "|" + Fore.YELLOW + " %s" + Fore.RESET
DEBUG_DIVIDER = Style.DIM + '-' * 100 + Style.NORMAL

# Indentation to use when formatting
Expand All @@ -44,8 +44,8 @@ def supports_color():
return True


def _print_debug(k, v):
print(DEBUG_LINE % (k, v))
def _print_debug(k, v, c=""):
print(DEBUG_LINE % (k, c[:3], v))


def main():
Expand Down

0 comments on commit c5b1947

Please sign in to comment.