I run tidy as a plugin in gedit.
It uncloses self-closing tags like <br> and <img>
e.g. <br /> goes to <br> and <img src="somewhere" /> goes to <img src="somewhere">
Can I make tidy in gedit respect these self-closing tags or should I not be using these tags?