From 79fd22305caacb87996e373879c21327e2aff5f0 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Thu, 7 Jun 2018 00:29:57 -0400 Subject: [PATCH] Add auto-space to prefix --- ansiiprint.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ansiiprint.py b/ansiiprint.py index b70e4953..3d85814e 100644 --- a/ansiiprint.py +++ b/ansiiprint.py @@ -70,4 +70,8 @@ def echo(message, prefix, state): else: colour = bold() prompt = '>>> ' + + # Append space to prefix + if prefix != '': + prefix = prefix + ' ' print(colour + prompt + endc + date + prefix + message)