mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 08:03:50 +02:00
Update for PR feedback.
URLPreviewManager becomes URLPreviewService. addVerticalWhitespaceToString used instead of heightForCellData multiple times. All newline characters removed.
This commit is contained in:
@@ -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: " ")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user