Преглед на файлове

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

niehaoyu преди 7 месеца
родител
ревизия
93556768a4
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/Annotation/View/KMNoteTableViewCell.swift

+ 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))