Skip to content

Commit

Permalink
Add newline breaks to message content
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoni-Czaplicki committed Apr 11, 2024
1 parent 2cb113d commit 368d3ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/vulcan/fetch_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ async def get_latest_message(client):
latest_message["content"] = re.sub(
re.compile("<.*?>|&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-f]{1,6});"),
"",
message.content,
message.content.replace("<br>", "\n").replace("</p>", "\n"),
)
if message.sender is not None:
latest_message["sender"] = message.sender.name
Expand Down

0 comments on commit 368d3ff

Please sign in to comment.