4

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?

mpen
  • 272,448
  • 266
  • 850
  • 1,236

2 Answers2

3

See this.

Community
  • 1
  • 1
Alix Axel
  • 151,645
  • 95
  • 393
  • 500
  • more specifically http://tidy.sourceforge.net/docs/quickref.html#show-body-only thanks :) – mpen Dec 26 '10 at 20:23
1

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

austincheney
  • 1,097
  • 7
  • 8