fix for bug when comments are disabled, link attribute is never closed
Normalizing indentation a bit in media.html

This commit sponsored by Christian Frank.  Thank you!