Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 protected void Indent(StringBuilder accum, int depth, OutputSettings output)
 {
     accum.Append("\n").Append(StringUtil.Padding(depth * output.IndentAmount()));
 }