Simplify node traversal and fix IE where empty line has no children
Merge pull request #8 from clkao/iefixes

Simplify node traversal and fix IE where empty line has no children