This general rules are applicable to TCL & SQL. If you are using EMacs you usually are on the safe side with regards to TCL, as the tcl-mode indents just as we want it. ADP pages are formated correctly if you change into html-mode.
There is an OpenACS mode for emacs which has features to help meet formatting standards.
Allowing user input to include images, see patch in this discussion thread: http://openacs.org/forums/message-view?message_id=182057