private string GetEolLabel(string lineBreakText) { if (!ShouldShowEnding(lineBreakText)) { return(string.Empty); } SymbolSet symbols = SymbolSet.GetSymbolSet(eolOptions.Style); if (lineBreakText == "\r\n") { return(symbols.CrLf); } var sb = new StringBuilder(); foreach (var c in lineBreakText) { switch (c) { case '\r': sb.Append(symbols.Cr); break; case '\n': sb.Append(symbols.Lf); break; default: sb.Append("<" + (int)c + ">"); break; } } return(sb.ToString()); }