diff --git a/formatting.go b/formatting.go index b84c9d9..5748ebe 100644 --- a/formatting.go +++ b/formatting.go @@ -126,6 +126,7 @@ func (formatter *Formatter) ParseWhatsApp(content *mautrix.Content) { output = regex.ReplaceAllStringFunc(output, replacer) } if output != content.Body { + output = strings.Replace(output, "\n", "
", -1) content.FormattedBody = output content.Format = mautrix.FormatHTML for regex, replacer := range formatter.waReplFuncText {