make fenced code blocks work with username

modified:   app.py
	modified:   templates/chat.html
This commit is contained in:
Russell Ballestrini 2023-11-01 08:30:14 -04:00
parent 62a0d2f6c0
commit 175f49d135
2 changed files with 2 additions and 2 deletions

2
app.py
View file

@ -111,7 +111,7 @@ def handle_message(data):
emit(
"message",
{"id": new_message.id, "content": f"{data['username']}: {data['message']}"},
{"id": new_message.id, "content": f"{data['username']}:\n\n{data['message']}"},
room=data["room"],
)