Skip to content

Commit

Permalink
Merge pull request #124 from vritant24/vritant24-patch-1
Browse files Browse the repository at this point in the history
Add spacing to section headers in terminal output
  • Loading branch information
acbart authored May 1, 2024
2 parents 54f074a + 5cf10ae commit 64ad471
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pedal/environments/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def resolve_on_terminal(report=MAIN_REPORT):
# print("\033[47m", "-" * 35, "FEEDBACK", "-" * 35, "\033[0m", file=file)
feedback = resolve(report)
print("")
print(f"{REVERSE}FEEDBACK{RESET} Based on your code, here are some tips and recommendations:\n")
print(f"{REVERSE} FEEDBACK {RESET} Based on your code, here are some tips and recommendations:\n")
if feedback.correct:
print(f"{BOLD_GREEN}{CHECKMARK}{RESET}️ Your code ran successfully.\n")
print(f"{feedback.message}")
Expand All @@ -74,7 +74,7 @@ def resolve_on_terminal(report=MAIN_REPORT):
if python_error:
python_error_native_message = to_native_message(python_error)
if python_error_native_message:
print(f"{REVERSE}TERMINAL OUTPUT{RESET} For reference, here is the original Python error:")
print(f"{REVERSE} TERMINAL OUTPUT {RESET} For reference, here is the original Python error:")
print(python_error_native_message)
break
return feedback
Expand Down Expand Up @@ -129,7 +129,7 @@ def __init__(self, files=None, main_file='answer.py', main_code=None,
if skip_run:
student = get_sandbox(report=report)
else:
print(f"{REVERSE}YOUR CODE{RESET} We ran your code. Here's the output:\n")
print(f"{REVERSE} YOUR CODE {RESET} We ran your code. Here's the output:\n")
if trace:
start_trace()
if real_io:
Expand Down

0 comments on commit 64ad471

Please sign in to comment.