Created attachment 677 [details] Fixes the problem Element element = new Element("br"); writeln(element); The above code produces "<br></br>" and not the expected "<br />". The attached patch fixes the problem.
This looks correct as of v2.065. -------------------------------------------- import std.stdio; import std.xml; void main() { Element element = new Element("br"); writeln(element); } -------------------------------------------- Application output: <br />