Replace newlines with line breaks. Fixes #3258

This commit is contained in:
Maurice Parker 2021-08-17 17:40:00 -05:00
parent 15bf35ce28
commit 05e3ff9fd2

View File

@ -115,7 +115,7 @@ private extension TwitterStatus {
}
if prevIndex < displayEndIndex {
html += String(text[prevIndex..<displayEndIndex])
html += String(text[prevIndex..<displayEndIndex]).replacingOccurrences(of: "\n", with: "<br>")
}
return html