Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 20. apríl 2024

Súbor: [Platon] / iotta / Iotta / Format / In / IrcTranscript.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::IrcTranscript;
use strict;
require Iotta::Elem;
our @ISA = ("Iotta::Elem");

sub run {
    my $s = shift;
    my $m = shift;
    my $in = shift;
    my $out;
    print "  parsing irc transcript format...\n";
    $in =~ s/&/&/g;
    $in =~ s/</&lt;/g;
    $in =~ s/>/&gt;/g;
    $in =~ s/^([^ \t\n]*)/<text class="irc-nick">$1<\/text>/gsm;
    $in =~ s/\n/<\/par><par>/gsm;
    #$in =~ s/\n/<br\/>/gsm;
    $out = "<iotta-ifmt><div><par>$in</par></div></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/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok