             self.addToPageContents(contentValue: contentValue)
         }
         
+        for str in pageContents {
+            print("str = \(str.string)")
+        }
+
         leavesView.reloadData()
     }
     

                self.addToPageContents(contentValue: contentValue)
                contentValue = ""
            } else {
                // old line.
                contentValue.append(content)
                contentValue.append("\n")
            }

        for lineStr in array {
            if (Double(lineStr.characters.count) <= letersPerLine) {
                contents.append(lineStr)
            }
            
            var temp = lineStr
            while temp.characters.count > 20 {
                let subText = (temp as NSString).substring(to: 20)
                contents.append(subText)
                temp = (temp as NSString).substring(from: 20)
            }
            
            if (temp != "") {
                contents.append(temp)
            }
        }
        
