Skip to content

Commit

Permalink
Stop trying to remove trailing spaces as it is causing too many problems
Browse files Browse the repository at this point in the history
  • Loading branch information
vincode-io committed Jan 1, 2024
1 parent d531604 commit a1b684d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions VinOutlineKit/Sources/VinOutlineKit/Row.swift
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ public final class Row: NSObject, NSCopying, RowContainer, Codable, Identifiable
set {
if let attrText = newValue {
let (cleanAttrText, newImages) = splitOffImages(attrString: attrText, isNotes: false)
cleanAttrText.trimCharacters(in: .whitespaces)
topicData = cleanAttrText.toData()

var notesImages = images?.filter { $0.isInNotes ?? false } ?? [Image]()
Expand Down Expand Up @@ -213,7 +212,6 @@ public final class Row: NSObject, NSCopying, RowContainer, Codable, Identifiable
set {
if let attrText = newValue {
let (cleanAttrText, newImages) = splitOffImages(attrString: attrText, isNotes: true)
cleanAttrText.trimCharacters(in: .whitespaces)
noteData = cleanAttrText.toData()

var topicImages = images?.filter { !($0.isInNotes ?? false) } ?? [Image]()
Expand Down

0 comments on commit a1b684d

Please sign in to comment.