fix: do not strip spaces from the parts of messages

this caused spaces to disappear when using markdown
This commit is contained in:
Jonathan Rainville 2020-11-16 15:05:09 -05:00 committed by Iuri Matias
parent c4bfba5cbf
commit 880d97dea0
1 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ QtObject:
case elem.textType:
of "mention": result = self.userNameOrAlias(elem.literal)
of "link": result = elem.destination
else: result = escape_html(elem.literal.strip)
else: result = escape_html(elem.literal)
proc renderBlock(self: ChannelsList, message: Message): string =
for pMsg in message.parsedText:
@ -171,5 +171,5 @@ QtObject:
for children in pMsg.children:
result = result & self.renderInline(children)
else:
result = escape_html(pMsg.literal.strip)
result = escape_html(pMsg.literal)