/[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 8 by dpavlin, Wed Dec 12 13:17:15 2007 UTC revision 9 by dpavlin, Wed Dec 12 13:22:32 2007 UTC
# Line 16  my $max = 5; Line 16  my $max = 5;
16  my $page;  my $page;
17  my $page_date;  my $page_date;
18    
19    my @page_names;
20    
21  find({  find({
22          wanted => sub {          wanted => sub {
23                  my $path = $File::Find::name;                  my $path = $File::Find::name;
# Line 86  foreach my $name ( keys %$page ) { Line 88  foreach my $name ( keys %$page ) {
88          $body =~ s/'''(.+?)'''/surround('*',$1)/gse;          $body =~ s/'''(.+?)'''/surround('*',$1)/gse;
89          $body =~ s/''(.+?)''/surround('_',$1)/gse;          $body =~ s/''(.+?)''/surround('_',$1)/gse;
90    
91            # fix bullets
92          $body =~ s/^\s+([\*])/$1/gm;          $body =~ s/^\s+([\*])/$1/gm;
93    
94            # fix links
95            $body =~ s/\["([^"]+)"\]/[$1]/gs;
96    
97          Encode::_utf8_off( $body );          Encode::_utf8_off( $body );
98    
99          my @tags = ( 'TamTam' );          my @tags = ( 'TamTam' );

Legend:
Removed from v.8  
changed lines
  Added in v.9

  ViewVC Help
Powered by ViewVC 1.1.26