added open-empty-tags option to leave an empty line when there are no child elements