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