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

Add preserve empty lines option #43

Closed mkozono closed 7 years ago

mkozono commented 7 years ago

I took a stab at Could you make an option to let one empty row when there are multiple empty rows? #5.

This is branched off of #41 because it helped fix this test in this PR, so that's why the first three commits seem unrelated. I can rebase this branch onto master if #41 gets merged.

Side notes

threedaymonk commented 7 years ago

This is fantastic. I'm going to be busy for the next few days, but I'll try to take a proper look at this (and #41) next week.

Thanks!

threedaymonk commented 7 years ago

I've rebased this and squashed the test and implementation commits into two (one for test, one for implementation) and merge that into master. Thanks!