Warin / SublimeTidyHTML

Cleanup you html files with SublimeTidyHTML. Parse your files with W3C's tidy-html5 locally. No php required nor webservice call.
20 stars 4 forks source link

CDATA comments are not inserted at the correct tab level, but rather inserted at the beginning of the line. #4

Closed wyoumans closed 11 years ago

wyoumans commented 11 years ago

Thanks for your work on this helpful plugin!

Warin commented 11 years ago

Can you send me a test case?

wyoumans commented 11 years ago

Sure. After doing further testing, it looks like it is actually the first line after a script or style tag that is indented incorrectly.

before cleanup: https://gist.github.com/klanoma/6d3e91c3ff224cf87467 after cleanup: https://gist.github.com/klanoma/190889d1a7d0f0ef7766

my config file looks like: https://gist.github.com/klanoma/a6a029ffd22cd44febb7

let me know if you need anything else. thanks.

Warin commented 11 years ago

thanks, I will digg into it when I have some time!

Warin commented 11 years ago

It seems to be a know issue in Tidy-html5. See https://github.com/w3c/tidy-html5/issues/56 and https://github.com/w3c/tidy-html5/issues/13

Since this script is just running the Tidy-html5 build, I can't do much at this time. Sorry that I can't help on this one.

wyoumans commented 11 years ago

thanks for looking into it!