jarrett / rbbcode

Converts BBCode to HTML. Gracefully handles invalid input. Built on Treetop.
41 stars 9 forks source link

TreeMaker Bug #8

Closed ruski1983 closed 11 years ago

ruski1983 commented 14 years ago

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

jarrett commented 11 years ago

A new version based on Treetop will be coming out soon. This is a total rewrite, so all current issues will be closed.