Skip to content

Commit fadc312

Browse files
author
Gerardo
committed
Fix whitespace issues
1 parent 87b3cd8 commit fadc312

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Aztec/Classes/TextKit/TextStorage.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ open class TextStorage: NSTextStorage {
361361

362362
textStore.setAttributes(adjustedAttributes, range: range)
363363
edited(.editedAttributes, range: range, changeInLength: 0)
364-
364+
365365
endEditing()
366366
}
367367

@@ -533,15 +533,15 @@ private extension TextStorage {
533533
///
534534
private func adjustAttributesForMark(_ attrs: [NSAttributedString.Key: Any], range: NSRange) -> [NSAttributedString.Key: Any] {
535535
var adjustedAttributes = attrs
536-
536+
537537
// Check if the range has the 'markHtmlRepresentation' attribute
538538
let hasMarkAttribute = attribute(.markHtmlRepresentation, at: range.location, effectiveRange: nil) != nil
539-
539+
540540
// If the 'markHtmlRepresentation' attribute is present, retain the existing color
541541
if hasMarkAttribute, let existingColor = textStore.attribute(.foregroundColor, at: range.location, effectiveRange: nil) as? UIColor {
542542
adjustedAttributes[.foregroundColor] = existingColor
543543
}
544-
544+
545545
return adjustedAttributes
546546
}
547547
}

0 commit comments

Comments
 (0)