                 }
             }
         	for child in element.childNodes(ofTypes: [.Element, .Text]) {
+                if child.type == .Text && child.stringValue == "\n" {
+                    continue
+                }
                 attributedString.appendAttributedString(prefix)
             	attributedString.appendAttributedString(generateString(child,
                     	attributedString: NSMutableAttributedString()))

    }
    
    private func generateString(node: XMLNode, attributedString: NSMutableAttributedString) -> NSMutableAttributedString {
        if node.type == XMLNodeType.Text {
            attributedString.appendAttributedString(NSAttributedString(string: node.stringValue,
                attributes: [NSForegroundColorAttributeName: Colors.textColor]))
            return attributedString
        }
        

            style.paragraphSpacing = 6.0
            return [NSParagraphStyleAttributeName: style]
        case "code":
            let style = NSMutableParagraphStyle()
            style.setParagraphStyle(NSParagraphStyle.defaultParagraphStyle())
            style.firstLineHeadIndent = 6.0
            style.headIndent = 6.0
            return [
                    NSParagraphStyleAttributeName: style,
                    NSFontAttributeName: UIFont(name: "Menlo-Regular", size: font.pointSize)!
            ]
        case "del":
            return [
                    NSStrikethroughStyleAttributeName:
