CalDavSynchronizer.ThoughtvCardWorkaround.ContactDataPreprocessor.NormalizeLineBreaks C# (CSharp) Метод

NormalizeLineBreaks() публичный статический Метод

public static NormalizeLineBreaks ( string vcardData ) : string
vcardData string
Результат string
    public static string NormalizeLineBreaks (string vcardData)
    {
      // Certain iCal providers like Open-Xchange deliver their data with unexpected linebreaks
      // which causes the parser to fail. This can be fixed by normalizing the unexpected \r\r\n to \r\n
      return vcardData.Replace ("\r\r\n", "\r\n");
    }
  }