public void TrimLast()
        {
            int trim = new StringBuilderTrimmer(configuration.LegacyBehaviour.TrimTrailingNewlines).TrimLast(sb);

            if (trim > 0)
            {
                sb.Remove(sb.Length - trim, trim);
            }
        }
 public void TrimLast()
 {
     int trim = new StringBuilderTrimmer(configuration.LegacyBehaviour.TrimTrailingNewlines).TrimLast(sb);
     if(trim > 0)
         sb.Remove(sb.Length - trim, trim);
 }