diff --git a/client/ui/chat/Message.tsx b/client/ui/chat/Message.tsx
index 939a9bc..8a327dc 100644
--- a/client/ui/chat/Message.tsx
+++ b/client/ui/chat/Message.tsx
@@ -29,9 +29,11 @@ function prettyFlatParsedMessage(html: string) {
let lastElementType = ''
function checkContinuousElement(tagName: string) {
if (lastElementType != tagName) {
- if (lastElementType == 'chat-text')
- ret += `${ls.map((v) => v.outerHTML).join('')}`
- else
+ console.log(lastElementType, ls.map((v) => v.innerHTML))
+ if (textElementTags.indexOf(lastElementType) != -1) {
+ if (ls.map((v) => v.innerHTML).join('').trim() != '')
+ ret += `${ls.map((v) => v.outerHTML).join('')}`
+ } else
ret += ls.map((v) => v.outerHTML).join('')
ls = []
}