/[socialtext-import]/tamtam/tamtam2socialtext.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /tamtam/tamtam2socialtext.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 18 by dpavlin, Wed Dec 12 23:01:18 2007 UTC revision 20 by dpavlin, Thu Dec 13 11:38:36 2007 UTC
# Line 154  sub convert_markup { Line 154  sub convert_markup {
154          $body =~ s,----(\S+),----\n$1,gs;          $body =~ s,----(\S+),----\n$1,gs;
155    
156          # attachments          # attachments
157            $body =~ s,\[attachment:([^\]]+)(gif|png|jpg|jpeg)\],{image: $1$2},gis;
158          $body =~ s,\[attachment:([^\]]+)\],{file: $1},gs;          $body =~ s,\[attachment:([^\]]+)\],{file: $1},gs;
159    
160          return $body;          return $body;
# Line 190  foreach my $name ( keys %$page ) { Line 191  foreach my $name ( keys %$page ) {
191          $body .= qq{          $body .= qq{
192  ----  ----
193    
194  Original http://www.razmjenavjestina.org/$full_name {date: $date}  "original"<http://www.razmjenavjestina.org/$full_name> {date: $date}
195  };  };
196    
197          Encode::_utf8_off( $body );          Encode::_utf8_off( $body );

Legend:
Removed from v.18  
changed lines
  Added in v.20

  ViewVC Help
Powered by ViewVC 1.1.26