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 0f88e8e851
commit 1963f35d30
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: " ")
}
}