Update for PR feedback.

URLPreviewManager becomes URLPreviewService.
addVerticalWhitespaceToString used instead of heightForCellData multiple times.
All newline characters removed.
This commit is contained in:
Doug
2021-09-08 15:10:13 +01:00
parent 5acbc20fc9
commit 4a33f7f1e6
13 changed files with 105 additions and 150 deletions
@@ -47,6 +47,6 @@ class URLPreviewData: NSObject {
self.siteName = siteName
self.title = title
// Remove line breaks from the description text
self.text = text?.replacingOccurrences(of: "\n", with: " ")
self.text = text?.components(separatedBy: .newlines).joined(separator: " ")
}
}