[dev] icalendar event generation patch

KaalH! kaalh@smol.org
Fri, 6 Sep 2002 12:53:12 +0200


remove linebreaks from description. 

Index: Event.php
===================================================================
RCS file: /repository/kronolith/lib/Event.php,v
retrieving revision 1.35
diff -u -r1.35 Event.php
--- Event.php   6 Sep 2002 05:23:19 -0000       1.35
+++ Event.php   6 Sep 2002 10:43:31 -0000
@@ -72,7 +72,7 @@
             $vcs = &Data::singleton('icalendar');
         }
         $vcal['SUMMARY'] = $this->title;
-        $vcal['DESCRIPTION'] = $this->description;
+        $vcal['DESCRIPTION'] = str_replace("\n", "", $this->description);
         $vcal['DTSTART'] = $vcs->makeDate($this->start);
         $vcal['DTEND'] = $vcs->makeDate($this->end);

---------------------

Another bug detected : 
the exported icalendar events have wrong time values (tested with tz +0200) 

-- 
KaalH!