Show
Ignore:
Timestamp:
08/30/08 00:58:52 (4 months ago)
Author:
ogawa
Message:

Fix a bug: stop adding trailing double quote to each line
Update version number.

Location:
cybozu2ical/trunk/lib/WWW/CybozuOffice6
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • cybozu2ical/trunk/lib/WWW/CybozuOffice6/Calendar.pm

    r512 r515  
    1212use WWW::CybozuOffice6::Calendar::RecurrentEvent; 
    1313 
    14 our $VERSION = '0.30'; 
     14our $VERSION = '0.31'; 
    1515 
    1616sub new { 
  • cybozu2ical/trunk/lib/WWW/CybozuOffice6/CalendarDriver/ApiCalendar.pm

    r512 r515  
    6464 
    6565        my $content = $res->content; 
     66        $content =~ s/\r?\n[^\r\n]*$//;    # remove last line 
    6667        from_to( $content, $cal->{input_encoding} || 'shiftjis', 'utf8' ); 
    67         my $line = ( split( /\r?\n/, $content ) )[0]; 
    6868 
    69         # Cybozu bug: may produce broken CSV lines 
    70         $line .= '"' if $line !~ /\"$/; 
    71         push @lines, $line; 
     69        push @lines, $content; 
    7270    } 
    7371 
  • cybozu2ical/trunk/lib/WWW/CybozuOffice6/CalendarDriver/SyncCalendar.pm

    r512 r515  
    3333    from_to( $content, $cal->{input_encoding} || 'shiftjis', 'utf8' ); 
    3434    my @lines = grep /^\d+,ts\.\d+,/, split( /\r?\n/, $content ); 
     35 
    3536    $cal->{response} = \@lines; 
    36  
    3737    scalar @lines ? \@lines : undef; 
    3838}