public object Clone() { OutputSettings clone = new OutputSettings(); clone.SetEncoding(_encoding.WebName); // new charset and charset encoder clone.SetEscapeMode(_escapeMode); clone.PrettyPrint(_prettyPrint); clone.IndentAmount(_indentAmount); return(clone); }
protected void Indent(StringBuilder accum, int depth, OutputSettings output) { accum.Append("\n").Append(StringUtil.Padding(depth * output.IndentAmount())); }
public object Clone() { OutputSettings clone = new OutputSettings(); clone.SetEncoding(_encoding.WebName); // new charset and charset encoder clone.EscapeMode = _escapeMode; clone.PrettyPrint(_prettyPrint); clone.IndentAmount(_indentAmount); return clone; }