vars.disable_input_formatting and vars.disable_output_formatting fix

This commit is contained in:
vfbd 2022-08-08 13:04:46 -04:00
parent 3460e62271
commit 3b56859c12

View File

@ -4824,6 +4824,9 @@ def getnewcontent(txt):
# Applies chosen formatting options to text submitted to AI
#==================================================================#
def applyinputformatting(txt):
if(vars.disable_input_formatting):
return txt
# Add sentence spacing
if(vars.formatoptns["frmtadsnsp"]):
txt = utils.addsentencespacing(txt, vars)
@ -4837,6 +4840,9 @@ def applyoutputformatting(txt):
# Use standard quotes and apostrophes
txt = utils.fixquotes(txt)
if(vars.disable_output_formatting):
return txt
# Adventure mode clipping of all characters after '>'
if(vars.adventure):
txt = vars.acregex_ai.sub('', txt)