Also apply comment formatting to prompt in `refresh_story()`

This commit is contained in:
Gnome Ann 2021-11-21 00:26:45 -05:00
parent 1968be82bb
commit a51f88aeb3
1 changed files with 1 additions and 1 deletions

View File

@ -1779,7 +1779,7 @@ def applyoutputformatting(txt):
# Sends the current story content to the Game Screen
#==================================================================#
def refresh_story():
text_parts = ['<chunk n="0" id="n0" tabindex="-1">', html.escape(vars.prompt), '</chunk>']
text_parts = ['<chunk n="0" id="n0" tabindex="-1">', vars.comregex_ui.sub(lambda m: '\n'.join('<comment>' + l + '</comment>' for l in m.group().split('\n')), html.escape(vars.prompt)), '</chunk>']
for idx in vars.actions:
item = vars.actions[idx]
idx += 1