Bladeren bron

【综合】注释列表文字显示调整

niehaoyu 7 maanden geleden
bovenliggende
commit
93556768a4

+ 2 - 1
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/Annotation/View/KMNoteTableViewCell.swift

@@ -260,7 +260,8 @@ extension KMNoteTableViewCell {
                 if(contentString.isEmpty == false) {
                     self.foldButton.isHidden = false
                 }
-                noteString = contentString.replacingOccurrences(of: "\r", with: "")
+                
+                noteString = noteString.replacingOccurrences(of: "\r", with: "")
                 let attributeStr = NSMutableAttributedString(string: noteString)
                 if (markup.markupType() == .highlight) {
                     attributeStr.addAttribute(.backgroundColor, value: noteColor as Any, range: NSMakeRange(0, noteString.count))