Bug 4394 – std.xml prints empty elements as non-empty

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Mac OS X
Creation time
2010-06-26T06:32:00Z
Last change time
2014-03-18T23:11:00Z
Keywords
patch
Assigned to
nobody
Creator
doob

Attachments

IDFilenameSummaryContent-TypeSize
677xml.d.patchFixes the problemtext/plain750

Comments

Comment #0 by doob — 2010-06-26T06:32:26Z
Created attachment 677 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.
Comment #1 by lt.infiltrator — 2014-03-18T23:11:00Z
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 />