Browse files

Issue 4069 - std.xml.Document.pretty saves empty elements with spaces…

… and line breaks
  • Loading branch information...
1 parent 046e1b3 commit b3ad939cf41adfefd33b16d2d91ca56d568cddac @WalterBright WalterBright committed Feb 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 std/xml.d
View
2 std/xml.d
@@ -946,7 +946,7 @@ class Element : Item
return buffer;
}
- override bool isEmptyXML() { return false; } /// Returns false always
+ override bool isEmptyXML() { return items.length == 0; }
}
}

0 comments on commit b3ad939

Please sign in to comment.