예제 #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);
        }
예제 #2
0
파일: Node.cs 프로젝트: fengweijp/NSoup
 protected void Indent(StringBuilder accum, int depth, OutputSettings output)
 {
     accum.Append("\n").Append(StringUtil.Padding(depth * output.IndentAmount()));
 }
예제 #3
0
 protected void Indent(StringBuilder accum, int depth, OutputSettings output)
 {
     accum.Append("\n").Append(StringUtil.Padding(depth * output.IndentAmount()));
 }
예제 #4
0
파일: Document.cs 프로젝트: rfcclub/NSoup
        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;
        }