private void AppendChar(StringBuilder sb, char c) { sb.Append(c); _linePos++; if (LineLength > 0 && (_linePos >= LineLength)) { _linePos = 0; sb.Append('\n'); } }