Home › Forums › Calendar Products › Events Calendar PRO › Line breaks in event description lost in ical file for Outlook subscribers
- This topic has 24 replies, 7 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
August 28, 2012 at 5:51 am #24188MattParticipant
I tried
$description = $eventPost->post_content;
…still no luck.August 28, 2012 at 6:17 am #24189CaseyParticipantMatt,
Try this: $description = wpautop($eventPost->post_content);Let me know if that fixes the issue.
August 28, 2012 at 6:45 am #24193MattParticipantOk, 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 3Line 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.
August 28, 2012 at 6:48 am #24194MattParticipant…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] —August 29, 2012 at 1:09 pm #24306DanielMemberHi 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.
August 30, 2012 at 5:51 am #24337MattParticipantDaniel, yes, it appears to be breaking correctly:
http://d.pr/i/hZ6xI tested as a single event import and as an event on a subscribed calendar.
September 6, 2012 at 9:36 am #24645Daniel DvorkinMemberThanks Matt. Now that we know a format that works for you, I’ll make the change in the plugins code for a future release.
September 7, 2012 at 6:56 am #24678MattParticipantTerrific, thank you.
September 7, 2012 at 7:23 am #24680CaseyParticipantI’m going to go ahead and mark this as closed. We can re-open if we need to.
July 7, 2015 at 6:26 am #977697Support DroidKeymasterThis 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. -
AuthorPosts
- The topic ‘Line breaks in event description lost in ical file for Outlook subscribers’ is closed to new replies.