It outputs a tag only if the contents you pass is non-empty. Also, unit tests for the basic parts of html_writer.