threedaymonk / htmlbeautifier

A normaliser/beautifier for HTML that also understands embedded Ruby. Ideal for tidying up Rails templates.
MIT License
325 stars 59 forks source link

Fix matching of void elements to always match full tag name #9

Closed jirutka closed 9 years ago

jirutka commented 9 years ago

HTML parser matches colgroup as a void element and then throws RuntimeError: Outdented too far on line X. The problem is in html_parser.rb:29 – see online example.

I’ve fixed this issue and added regression and integration tests.

threedaymonk commented 9 years ago

Thanks! I've released 0.0.10 with your fix.