Fixed the repo-to-html writer to correctly add closing tags