• Resolved Greendroid

    (@greendroid)


    Good evening,
    My calender program (Hetzner Horde Webmail) is creating “unwanted” line breaks in the DESCRIPTION field of the ICS appointments.
    According to an ICS Validator website these line breaks are valid and allowed in the ICS-standard.

    Unfortunately the ICS Calender plugin is not parsing this description accordingly. Only the first line until the line break is shown in the appointment.

    Here an example:
    The following thing is written into the description field of the appointment:

    
    An frostfreien Tagen k?nnen Geh?lze vermehrt werden.
    https://greendroid.de/blog/vermehrung/#Tipp
    
    Weitere Informationen zur Pflanzenvermehrung:
    https://greendroid.de/blog/vermehrungskalender/
    

    In the ICS-File the following is written:

    
    DESCRIPTION:An frostfreien Tagen k?nnen Geh?lze vermehrt
      werden.\nhttps://greendroid.de/blog/vermehrung/#Tipp\n\nWeitere
      Informationen zur
      Pflanzenvermehrung:\nhttps://greendroid.de/blog/vermehrungskalender/
    

    The ICS calendar is now only showing “An frostfreien Tagen k?nnen Geh?lze vermehrt”, because the line break is not detected correctly I think.

    Is it somehow possible to advise the plugin to parse also the rest of the description correctly?

    Don’t be surprised: I am using links also in thr description field. This is because I am linking on different webpages in one description. The ICS-URL field would limit me to one single hyperlink.

    Thanks and best regards
    Greendroid

    The page I need help with: [log in to see the link]

Viewing 6 replies - 16 through 21 (of 21 total)
  • Plugin Author room34

    (@room34)

    Thanks… I’ll look into this. I had to make up some kind of rough rules for determining whether or not to insert an extra space for a word break at these line breaks, and I think I may not have accounted for the fact that some words in German can get quite long! ??

    Thread Starter Greendroid

    (@greendroid)

    Thanks!
    And you cannot imagine HOW long they really can be sometimes ??
    We are only using short words. If you stick into law or insurances then they increase a lot…
    Kind regards
    Greendroid

    Plugin Author room34

    (@room34)

    @greendroid OK, the situation here was that, in determining whether to add the extra space for a word break over the line breaks, I was only looking for the presence of a space character in the previous line. In these cases in your feed, there were no spaces in the previous line but there were escaped line breaks (\n) which is effectively a space. Version 6.5.1.1 of the plugin modifies the linebreakfix functionality to account for these.

    Thread Starter Greendroid

    (@greendroid)

    Hi,
    thank you very much. This event is now looking fine.
    Unfortunately, and I almost do not dare to write it, the appointment at the 1st March “Pflanzenvermehrung” now has a space in the middle of a word:
    We itere Informationen zur Pflanzenvermehrung:

    I really apologize the circumstances, but thanks for trying to fix that…
    Kind regards
    Greendroid

    Thread Starter Greendroid

    (@greendroid)

    Hi,
    I finally got an answer from my webhoster.
    There was a slight update in parsing the calendar via CalDAV. If I now export the calendars with Thunderbird (which retrieves the data via CalDAV) I have a stable and small ICS file. This can also be handled with your calendar easily without the linebreakfix.
    Thanks again for your great work!
    Kind regards
    Greendroid

    Plugin Author room34

    (@room34)

    Thanks! I’ll most likely leave the linebreakfix option (undocumented) in the plugin just in case something like this comes up again in the future.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Description is not correctly parsed’ is closed to new replies.