|
@@ -264,11 +264,11 @@ extension KMNoteTableViewCell {
|
|
|
if (markup.markupType() == .highlight) {
|
|
|
attributeStr.addAttribute(.backgroundColor, value: noteColor as Any, range: NSMakeRange(0, contentString.count))
|
|
|
} else if (markup.markupType() == .strikeOut) {
|
|
|
- attributeStr.addAttribute(.strikethroughStyle, value: NSUnderlineStyle.single.rawValue, range: NSMakeRange(0, noteString.count))
|
|
|
- attributeStr.addAttribute(.strikethroughColor, value: noteColor as Any, range: NSMakeRange(0, noteString.count))
|
|
|
+ attributeStr.addAttribute(.strikethroughStyle, value: NSUnderlineStyle.single.rawValue, range: NSMakeRange(0, contentString.count))
|
|
|
+ attributeStr.addAttribute(.strikethroughColor, value: noteColor as Any, range: NSMakeRange(0, contentString.count))
|
|
|
} else if (markup.markupType() == .underline) {
|
|
|
- attributeStr.addAttribute(.underlineStyle, value: NSUnderlineStyle.single.rawValue, range: NSMakeRange(0, noteString.count))
|
|
|
- attributeStr.addAttribute(.underlineColor, value: noteColor as Any, range: NSMakeRange(0, noteString.count))
|
|
|
+ attributeStr.addAttribute(.underlineStyle, value: NSUnderlineStyle.single.rawValue, range: NSMakeRange(0, contentString.count))
|
|
|
+ attributeStr.addAttribute(.underlineColor, value: noteColor as Any, range: NSMakeRange(0, contentString.count))
|
|
|
}
|
|
|
self.annotationContentLabel.attributedStringValue = attributeStr
|
|
|
|