fixed newlines

This commit is contained in:
Robert 2024-03-19 21:33:55 +07:00
parent 111e3064c2
commit a653b16a94
No known key found for this signature in database
GPG Key ID: F631C7FD957D5F22

View File

@ -71,6 +71,8 @@ class ProgressChain(BaseMongoModel):
for key, value in variables.items(): for key, value in variables.items():
action.text = action.text.replace(f"{{{{{key}}}}}", value) action.text = action.text.replace(f"{{{{{key}}}}}", value)
action.text = action.text.replace("\n", "<br/>")
return ProgressChain( return ProgressChain(
task_id=task_id, task_id=task_id,
namespace_id=namespace_id, namespace_id=namespace_id,