Súbor: [Platon] / iotta / Iotta / Format / In / Text.pm (stiahnutie)
Revízia 1.1.1.1, Sun Feb 16 15:48:11 2003 UTC (21 years, 2 months ago) by yenar
Zmeny od 1.1: +0 -0
[lines]
initial import of iotta into platon cvs
|
package Iotta::Format::In::Text;
use base Iotta::Elem;
use strict;
sub run {
my $s = shift;
my $m = shift;
my $in = shift;
my $out;
print " parsing text format...\n";
$in =~ s/&/&/g;
$in =~ s/</</g;
$in =~ s/>/>/g;
$in =~ s/\n\n/<\/p><p>/gsm;
#$in =~ s/\n/<br\/>/gsm;
$out = "<iotta-ifmt><p>$in</p></iotta-ifmt>\n";
$s->next->run ($m, $out) if ($s->next);
}
sub setup {
my $self = shift;
my $o = shift;
}
sub initialize {
my $self = shift;
$self->SUPER::initialize (@_);
}
1;
Platon Group <platon@platon.sk> http://platon.sk/
|