Submit Action mode action in Story mode if action is empty

This commit is contained in:
Gnome Ann 2021-09-28 19:50:00 -04:00
parent 9ab1d182ac
commit af93c96c0f
1 changed files with 2 additions and 1 deletions

View File

@ -944,7 +944,8 @@ def actionsubmit(data, actionmode=0):
if(actionmode == 1): if(actionmode == 1):
data = data.strip().lstrip('>') data = data.strip().lstrip('>')
data = re.sub(r'\n+', ' ', data) data = re.sub(r'\n+', ' ', data)
data = f"\n\n> {data}\n" if(len(data)):
data = f"\n\n> {data}\n"
# If we're not continuing, store a copy of the raw input # If we're not continuing, store a copy of the raw input
if(data != ""): if(data != ""):