royassas
Forum Replies Created
-
Now I’m confused.
You are right! Using the 2023 theme does make the empty lines vanish! Reactivating my SOHO theme brings them back. But this doesn’t explain why you didn’t get the empty lines.
Why is a plugin-generated file dependent on the theme other than for styling purposes? can you point me in a direction where to look for the problem in the theme’s files?
Don’t think it’s a caching problem in my case. If I change my template of ics.php the ICS file changes, too.
The validator accepts my events.ics as valid. I guess it deletes whitespace bevore analyzing the text. But webservices linking to my ics throw an error. By deleting the whitespace bevor the BEGIN: VCALENDAR manually, the file got accepted.This is a image from the generated .ics in VS Code: https://zigerschlitzmakers.ch/wp-content/uploads/2023/05/linebreak.png
Hey @joneiseman
Missed your reply. Sorry.
Thanks for your help. Your suggestions changes the linebreak bevor a “VEVENT”. But what I need is to erase the linebreaks bevor the “BEGIN:VCALENDAR” which is at about line 22. There is no “\r\n” to delete there.It might have to do with line 36?:
echo preg_replace("/([^\r])\n/", "$1\r\n", $output_header);