aboutsummaryrefslogtreecommitdiffstats
path: root/include/event.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-20 18:59:51 -0700
committerredmatrix <git@macgirvin.com>2016-07-20 19:00:45 -0700
commitdffa08adcc8f2b72be2b0927556abbedb219cc17 (patch)
tree6471a4fd80e2942da187d805aa2b121fa6b4acc0 /include/event.php
parent542fcaff9a1dd47d01b7e88ec0c3f1a2f2430a20 (diff)
downloadvolse-hubzilla-dffa08adcc8f2b72be2b0927556abbedb219cc17.tar.gz
volse-hubzilla-dffa08adcc8f2b72be2b0927556abbedb219cc17.tar.bz2
volse-hubzilla-dffa08adcc8f2b72be2b0927556abbedb219cc17.zip
fix vevent multi-line formatting
Diffstat (limited to 'include/event.php')
-rw-r--r--include/event.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/event.php b/include/event.php
index a4118ec78..3d650cd14 100644
--- a/include/event.php
+++ b/include/event.php
@@ -183,7 +183,9 @@ function format_ical_text($s) {
require_once('include/bbcode.php');
require_once('include/html2plain.php');
- return(wordwrap(str_replace(array(',',';','\\'),array('\\,','\\;','\\\\'),html2plain(bbcode($s))),72,"\r\n ",true));
+ $s = html2plain(bbcode($s));
+ $s = str_replace(["\r\n","\n"],["",""],$s);
+ return(wordwrap(str_replace(['\\',',',';'],['\\\\','\\,','\\;'],$s),72,"\r\n ",true));
}