mpen
mpen

Reputation: 283083

HTML Tidy on partial files?

I've got a punch of Django template files that I want to use tidy to clean up. However, it inserts all this doctype and header junk that I don't want. Mainly, I just want it to fix the indentation. All the other stuff is just extra.

Does tidy even work on partial files like this? What command can I use?

Upvotes: 4

Views: 1822

Answers (2)

austincheney
austincheney

Reputation: 1115

Use the Pretty Diff tool instead. It is a far more completely algorithm and it operates on incomplete input without making any assumptions.

http://prettydiff.com/?m=beautify&html

Upvotes: 1

Alix Axel
Alix Axel

Reputation: 154623

See this.

Upvotes: 3

Related Questions