Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions source/kxml/xml.d
Original file line number Diff line number Diff line change
Expand Up @@ -1249,11 +1249,7 @@ class XmlComment : XmlNode {

// internal function to generate opening tags
protected override string asOpenTag() {
if (_name.length == 0) {
return null;
}
auto s = "<!--" ~ _comment ~ "-->";
return s;
return "<!--" ~ _comment ~ "-->";
}

// internal function to generate closing tags
Expand Down