Menu

End of line: CRLF

Anonymous
2014-01-10
2014-01-13
  • Anonymous

    Anonymous - 2014-01-10

    Hi Michael,

    First let me thank you for the great work on the library.

    RFC 5545 specifies that lines should end with CRLF characters.
    See: http://tools.ietf.org/html/rfc5545#section-3.1

    When I serialize I calendar into the String, the lines are ended with Linux
    line ends.
    (The code is running on Linux.)

    ICalendar ical = new ICalendar();

    return ical.write();

    Can I somehow force the CRLF as line ending.

    Thanks a lot

    Vlada.

     
  • Michael Angstadt

    biweekly should already be using CRLF as a line ending. I ran a quick test to confirm:

    Code:

    :::java
    ICalendar ical = new ICalendar();
    String str = ical.write();
    str = str.replace("\r\n", "<CRLF>");
    System.out.println(str);
    

    Result:

    :::text
    BEGIN:VCALENDAR<CRLF>VERSION:2.0<CRLF>PRODID:-//Michael Angstadt//biweekly 0.3.2-SNAPSHOT//EN<CRLF>END:VCALENDAR<CRLF>
    

    Can you describe your situation in more detail?

     
  • Anonymous

    Anonymous - 2014-01-13

    OK, it was reported as a bug by one web iCal validator, but actually the validator is just wrong. I immediately started investigating, how to set the line-ending instead of validating validator. My bad.. very sorry. Thanks for your quick response. This thread can be removed.
    V.

     
  • Michael Angstadt

    No problem! :)

     

Anonymous
Anonymous

Add attachments
Cancel