Exemplo n.º 1
0
 private void PrintInlineElement(Element element)
 {
     PrintOpeningTag(element);
     if (HtmlReference.IsSelfClosingTag(element.TagName))
     {
         return;
     }
     PrintInlineChildNodes(element);
     PrintClosingTag(element, 0);
 }
Exemplo n.º 2
0
 private void PrintRegularElement(Element element, int indent)
 {
     Indent(indent);
     PrintOpeningTag(element);
     _builder.AppendLine();
     if (!HtmlReference.IsSelfClosingTag(element.TagName))
     {
         PrintChildNodes(element, indent + 1);
         PrintClosingTag(element, indent);
     }
     _builder.AppendLine();
 }