look for void elements and remove self closing tags to comply with hamlet syntax
fixes #1
now only opening target file once for parsing/writing