Question
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?
Solution
See this.
OTHER TIPS
Use the Pretty Diff tool instead. It is a far more completely algorithm and it operates on incomplete input without making any assumptions.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow