Fix extra newline in plaintext body when sending code block. Fixes #216
This commit is contained in:
@ -440,6 +440,7 @@ func (view *RoomView) SetEditing(evt *muksevt.Event) {
|
||||
// This feels kind of dangerous, but I think it works
|
||||
msgContent = view.editing.Gomuks.Edits[len(view.editing.Gomuks.Edits)-1].Content.AsMessage().NewContent
|
||||
}
|
||||
// TODO this should parse HTML instead of just using the plaintext body
|
||||
text := msgContent.Body
|
||||
if msgContent.MsgType == event.MsgEmote {
|
||||
text = "/me " + text
|
||||
|
Reference in New Issue
Block a user