Changeset 1765

Show
Ignore:
Timestamp:
10/15/06 23:59:46
Author:
miyagawa
Message:

Publish::iCal: use plaintextized summary

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Publish/iCal.pm

    r1762 r1765  
    5858        $event->add_properties( 
    5959            summary     => $entry->title, 
    60             description => $entry->summary || $entry->body || '', # xxx plaintext 
     60            description => $entry->summary ? $entry->summary->plaintext : '', 
    6161            dtstart     => $dtstart, 
    6262            dtend       => $dtend, 
  • trunk/plagger/t/plugins/Publish-iCal/base.t

    r1762 r1765  
    3333is $ical->entries->[0]->property('dtstart')->[0]->value, "20060710T123213Z"; 
    3434is $ical->entries->[0]->property('dtend')->[0]->value, "20060710T123213Z"; 
     35unlike $ical->entries->[0]->property('description')->[0]->value, qr/<p>/; 
    3536 
    3637=== Full day event