/[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 19 by dpavlin, Wed Dec 12 23:08:14 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;

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

  ViewVC Help
Powered by ViewVC 1.1.26