         var pasteboardString = NSAttributedString()
         
         // join attributed strings
-        let attrLineEnding = NSAttributedString(string: lineEnding)
+        let attrLineEnding = NSAttributedString(string: lineEnding.string)
         for selection in selections {
             // join with newline string
             if !pasteboardString.string.isEmpty {

        let string = self.string
        var selections = [NSAttributedString]()
        var propertyList = [Int]()
        let lineEnding = String((self.documentLineEnding ?? .LF).rawValue)
        
        // substring all selected attributed strings
        let selectedRanges = self.selectedRanges as! [NSRange]

            }
            
            // apply document's line ending
            if lineEnding != .LF {
                for (index, character) in zip(plainText.indices, plainText).reversed() where character == "\n" {  // process backwards
                    let characterRange = NSRange(index...index, in: plainText)
                    
                    styledText.replaceCharacters(in: characterRange, with: lineEnding.string)
                }
            }
            
