         for lineStr in array {
             if (Double(lineStr.characters.count) <= letersPerLine) {
                 contents.append(lineStr)
-            } else {
-                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)
-                }
+            }
+            
+            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)
             }
         }
         

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

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

        leavesView.reloadData()
    }
    
