protected override string ToString(bool formatted) { if (!ShouldBuildElement()) { return(string.Empty); } var span = new XSpan(children.ToArray()); var spanToString = formatted ? span.ToString() : span.ToPlainString(); if (BlockStyle == BlockStyle.Indented) { spanToString = Indent(spanToString); } return(spanToString + Environment.NewLine); }
protected override string ToString(bool formatted) { if (!ShouldBuildElement()) return string.Empty; var span = new XSpan(children.ToArray()); var spanToString = formatted ? span.ToString() : span.ToPlainString(); if (BlockStyle == BlockStyle.Indented) { spanToString = Indent(spanToString); } return spanToString + Environment.NewLine; }