Sublime-HTMLPrettify icon indicating copy to clipboard operation
Sublime-HTMLPrettify copied to clipboard

format html code problem

Open ChengEast opened this issue 3 years ago • 1 comments

I hope to get

htmlprettify1

but I got htmlprettify2 Can anyone help me ? Thanks a lot!

ChengEast avatar May 10 '21 03:05 ChengEast

I would assume HTMLPrettify is only supposed to operate on valid HTML. Because you have other template code in your HTML file, it's throwing off the parser (as expected) and it's not formatting your closing tags. If you run HTMLPrettify on the HTML generated from this template file, I'd expect it to format the closing divs correctly.

swierczek avatar Aug 11 '21 17:08 swierczek