Also apply comment formatting to prompt in `refresh_story()`
This commit is contained in:
parent
1968be82bb
commit
a51f88aeb3
|
@ -1779,7 +1779,7 @@ def applyoutputformatting(txt):
|
||||||
# Sends the current story content to the Game Screen
|
# Sends the current story content to the Game Screen
|
||||||
#==================================================================#
|
#==================================================================#
|
||||||
def refresh_story():
|
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:
|
for idx in vars.actions:
|
||||||
item = vars.actions[idx]
|
item = vars.actions[idx]
|
||||||
idx += 1
|
idx += 1
|
||||||
|
|
Loading…
Reference in New Issue