Fixed bug with HtmlTagWrapper.Write not writing if no children or attributes but class names were set

This commit is contained in:
agrath@gmail.com
2011-06-16 10:59:36 -02:00
parent 27aebac7e0
commit d4ed1efcf5

View File

@@ -54,7 +54,7 @@ namespace umbraco.MacroEngines
}
public HtmlString Write()
{
if (Children.Count > 0 || Attributes.Count > 0)
if (Children.Count > 0 || Attributes.Count > 0 || CssClasses.Count > 0)
{
using (MemoryStream ms = new MemoryStream())
{