- Timestamp:
- 05/25/13 02:56:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BookmarkApp.pm
r35 r36 104 104 105 105 for my $bookmark (@resources) { 106 my $cdatetime = time2isoz $bookmark-> {ctime};107 my $mdatetime = time2isoz $bookmark-> {mtime};106 my $cdatetime = time2isoz $bookmark->ctime; 107 my $mdatetime = time2isoz $bookmark->mtime; 108 108 # make the timestamps W3C-correct 109 109 s/ /T/ foreach ($cdatetime, $mdatetime); 110 110 111 111 $xbel->add_bookmark({ 112 href => $bookmark-> {uri},113 title => $bookmark-> {title},114 desc => 'Tags: ' . join(', ', @{ $bookmark-> {tags}}),112 href => $bookmark->uri, 113 title => $bookmark->title, 114 desc => 'Tags: ' . join(', ', @{ $bookmark->tags }), 115 115 added => $cdatetime, 116 116 #XXX: are we sure that modified is the mtime of the bookmark or the resource? … … 125 125 126 126 return $xbel->toString; 127 } elsif ($format eq 'text') { 128 $self->header_props( 129 -type => 'text/uri-list', 130 -charset => 'UTF-8', 131 ); 132 return join '', 133 map { 134 sprintf "# %s\n# Tags: %s\n%s\n", 135 $_->title, 136 join(', ', @{ $_->tags }), 137 $_->uri 138 } @resources; 127 139 } else { 128 140 $self->header_props(
Note: See TracChangeset
for help on using the changeset viewer.