Add auto-space to prefix

This commit is contained in:
Joshua Boniface 2018-06-07 00:29:57 -04:00
parent c89ec52019
commit 79fd22305c
1 changed files with 4 additions and 0 deletions

View File

@ -70,4 +70,8 @@ def echo(message, prefix, state):
else: else:
colour = bold() colour = bold()
prompt = '>>> ' prompt = '>>> '
# Append space to prefix
if prefix != '':
prefix = prefix + ' '
print(colour + prompt + endc + date + prefix + message) print(colour + prompt + endc + date + prefix + message)