Fixed bug with HtmlTagWrapper.Write not writing if no children or attributes but class names were set
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user