Replace newlines with line breaks. Fixes #3258
This commit is contained in:
parent
b38ee75ba2
commit
4820d3eee6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue