Line breaks in event description lost in ical file for Outlook subscribers

Home › Forums › Calendar Products › Events Calendar PRO › Line breaks in event description lost in ical file for Outlook subscribers

Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • #24188
    Matt
    Participant

    I tried
    $description = $eventPost->post_content;
    …still no luck.

    #24189
    Casey
    Participant

    Matt,
    Try this: $description = wpautop($eventPost->post_content);

    Let me know if that fixes the issue.

    #24193
    Matt
    Participant

    Ok, I just noticed something I missed before that may be helpful. All proposed mods have completely removed all lines past the first paragraph break. I just set up an example event that should break after each line (skipping lines 4 and 6 just to see what would happen):

    http://commons.lander.edu/kb/event/test-event/
    — [event description begin] —
    Line 1
    Line 2
    Line 3

    Line 5

    Line 7
    — [ event description end] —

    Currently, if no change is made the core file, the event description displays like this:
    — [event description begin] —
    Line 1 Line 2 Line 3 Line 5 Line 7
    — [ event description end] —

    With the 1st and 2nd suggested mods by Andy, I get this:
    — [event description begin] —
    Line 1
    — [ event description end] —

    With Casey’s mod, I get this:
    — [event description begin] —
    Line 1
    — [ event description end] —

    Hope this helps.

    #24194
    Matt
    Participant

    …I wondered if that happen. The HTML tags were stripped from my last example. I’ll try that again:

    With Casey’s mod, I get this:
    — [event description begin] —
    [open paragraph tag] Line 1 [break tag]
    — [ event description end] —

    #24306
    Daniel
    Member

    Hi Matt, I’m trying to debug this to add a fix in core.

    Could you please add this .ics? It adds only an event (Oct 16), and let me know if the description is breaking correctly?

    The url is: http://php52.tri.be/wp-content/iCal-TribeEvents.ics

    Let me know. Thanks.

    #24337
    Matt
    Participant

    Daniel, yes, it appears to be breaking correctly:
    http://d.pr/i/hZ6x

    I tested as a single event import and as an event on a subscribed calendar.

    #24645

    Thanks Matt. Now that we know a format that works for you, I’ll make the change in the plugins code for a future release.

    #24678
    Matt
    Participant

    Terrific, thank you.

    #24680
    Casey
    Participant

    I’m going to go ahead and mark this as closed. We can re-open if we need to.

    #977697
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 10 posts - 16 through 25 (of 25 total)
  • The topic ‘Line breaks in event description lost in ical file for Outlook subscribers’ is closed to new replies.