I think there is another bug in the treemaker on line 152 the methode delete_junk_breaks
elsif @schema.block_level?(node.tag_name) and child.tag_name == @schema.line_break_tag_name and node.children.last == child
if you put the whole tree in the methode you test here @schema.block_level?(node.tag_name) if the RootNode is a blockelem and there can be an methode not found exception. Because the RootNode don´t have a methode tag_name
I think there is another bug in the treemaker on line 152 the methode delete_junk_breaks
elsif @schema.block_level?(node.tag_name) and child.tag_name == @schema.line_break_tag_name and node.children.last == child
if you put the whole tree in the methode you test here @schema.block_level?(node.tag_name) if the RootNode is a blockelem and there can be an methode not found exception. Because the RootNode don´t have a methode tag_name