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

Gets stuck on bigger files #17

Closed THPubs closed 9 years ago

THPubs commented 9 years ago

When I try to beautify large files (specially html.erb files), It gets stuck and I have to forcefully exit the program. Why is that?

goooseman commented 9 years ago

+1 same for this. I'm using Beautify Ruby package for Sublime Text, and I need to Force close it, when trying to beautify big (not so big, sometimes about 200 lines) file. If I try to beautify this file thru terminal, htmlbeautifier doesn't give any output even after half an hour on my Macbook Pro. I've got a little workaround: I split my views to small partials and then render them in a view, somehow it is really annoying.

P. S. I use ruby v 2.1.4p265 and htmlbeautifier v 0.0.11. P. P. S. Just an example of file, on which htmlbeautifier gets stuck: http://pastebin.com/T9q1skcu

threedaymonk commented 9 years ago

I'll look into it.