num-html type detect/sorting works with multiline

Improved num-html sorting and type-detection to handle html tags that
span multiple lines.
Merge pull request #7 from netj/num-html-multiline-tags

num-html type detect/sorting works with multiline