Fix indentation and add missing closing tags.